Unit test

1,791 views
1,747 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,791
On SlideShare
0
From Embeds
0
Number of Embeds
187
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide























  • Unit test

    1. 1. Unit Test and Test Driven Development 2010.09.18 Sapporo Java Community @shuji_w6e
    2. 2. @shuji_w6e http://d.hatena.ne.jp/shuji_w6e/ http://code.google.com/p/etupirka/ http://code.google.com/p/pirka/ http://code.google.com/p/senic3/
    3. 3. public
    4. 4. Test Driven Development
    5. 5. Test Driven Development wikipedia
    6. 6. TDD 1. 2. 3. 5. 4. http://reddevnews.com/articles/2007/11/01/testdriven-development-tdd.aspx
    7. 7. xUnit
    8. 8. JUnit JUnit 4 + hamcrest @Test, @Before, @After assertThat Matcher
    9. 9. Quick JUnit Eclipse plug-in Ctrl + 9 http://quick-junit.sourceforge.jp/updates/ current/
    10. 10. Eclipse -1 Java - Code Style - Organized import Number of static import 99 > 1 Java - JUnit - “Add -ea” Java - Editor - Content Assist - Favorites org.hamcrest.CoreMatchers org.junit.Assert org.junit.matchers.JUnitMatchers
    11. 11. Eclipse -2 Java - Editor - Template Name: at assertThat(${actual}, is(${expected})); ${assert:importStatic ('org.junit.Assert.*')} ${matchers:importStatic ('org.hamcrest.CoreMatchers.*')}
    12. 12. Hello, Unit Test!
    13. 13. ls -l -a

    ×