01: package test.sample;
02:
03: import junit.framework.TestCase;
04:
05: /**
06: * This class
07: *
08: * @author Cedric Beust, May 5, 2004
09: *
10: */
11: public class JUnitSample2 extends TestCase {
12: private String m_field = null;
13:
14: public JUnitSample2() {
15: super ();
16: }
17:
18: public JUnitSample2(String n) {
19: super (n);
20: }
21:
22: public void setUp() {
23: m_field = "foo";
24: }
25:
26: public void testSample2ThatSetUpWasRun() {
27: assert null != m_field : "setUp() wasn't run";
28: }
29:
30: }
|