0
Unit Test
                    and
Test Driven Development
    2010.09.18 Sapporo Java Community

                         ...
@shuji_w6e
http://d.hatena.ne.jp/shuji_w6e/
http://code.google.com/p/etupirka/
http://code.google.com/p/pirka/
http://code...
public
Test Driven Development
Test Driven Development




              wikipedia
TDD
                                                       1.
                                                       2.


...
xUnit
JUnit


JUnit 4 + hamcrest
@Test, @Before, @After
assertThat
Matcher
Quick JUnit


Eclipse plug-in
Ctrl + 9

http://quick-junit.sourceforge.jp/updates/
current/
Eclipse              -1

Java - Code Style - Organized import
  Number of static import 99 > 1
Java - JUnit - “Add -ea”
Ja...
Eclipse             -2

  Java - Editor - Template
Name: at

assertThat(${actual},
          is(${expected}));
${assert:im...
Hello, Unit Test!
ls

     -l -a
Unit test
Unit test
Unit test
Unit test
Unit test
Unit test
Unit test
Unit test
Unit test
Unit test
Upcoming SlideShare
Loading in...5
×

Unit test

1,642

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,642
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide























  • Transcript of "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
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×