Unit test
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Unit test

on

  • 1,939 views

 

Statistics

Views

Total Views
1,939
Views on SlideShare
1,756
Embed Views
183

Actions

Likes
0
Downloads
15
Comments
0

1 Embed 183

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

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />

Unit test Presentation 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