Ugo Landini random thoughts on technology and life
Ulog, the Ugol's Weblog
Archives
« novembre 2009
lunmarmergiovensabdom
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      
Today
XML
Search

Links
 

Today's Page Hits: 2

All | General | Java
« a day more and... | Main | Etna valley! »
20050915 giovedì settembre 15, 2005
Junit 4
You probably have already read this on Slashdot, but these first impressions on Junit 4 is worth mentioning.

I know that Junit is not the first unit testing "framework" using annotations to improve simplicity, but this is the de facto industry standard, and for sound reasons.

can't wait to write this. And no more excuses for the not "test addicted"!

import static org.junit.Assert.assertEquals;

public class AdditionTest {

  private int x = 1;
  private int y = 1;

  @Test public void addition() {
   int z = x + y;
   assertEquals(2, z);
  }

}

set 15 2005, 12:27:38 PM CEST Permalink Comments [0]

Trackback URL: http://blogs.sun.com/ugol/entry/junit_4
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed