Unit test
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,963
On Slideshare
1,780
From Embeds
183
Number of Embeds
1

Actions

Shares
Downloads
15
Comments
0
Likes
0

Embeds 183

http://d.hatena.ne.jp 183

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide























Transcript

  • 1. Unit Test and Test Driven Development 2010.09.18 Sapporo Java Community @shuji_w6e
  • 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. public
  • 4. Test Driven Development
  • 5. Test Driven Development wikipedia
  • 6. TDD 1. 2. 3. 5. 4. http://reddevnews.com/articles/2007/11/01/testdriven-development-tdd.aspx
  • 7. xUnit
  • 8. JUnit JUnit 4 + hamcrest @Test, @Before, @After assertThat Matcher
  • 9. Quick JUnit Eclipse plug-in Ctrl + 9 http://quick-junit.sourceforge.jp/updates/ current/
  • 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. Eclipse -2 Java - Editor - Template Name: at assertThat(${actual}, is(${expected})); ${assert:importStatic ('org.junit.Assert.*')} ${matchers:importStatic ('org.hamcrest.CoreMatchers.*')}
  • 12. Hello, Unit Test!
  • 13. ls -l -a