• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.sample;
2 
3 import junit.framework.TestCase;
4 
5 /**
6  * This class
7  *
8  * @author Cedric Beust, May 5, 2004
9  *
10  */
11 public class JUnitSample2 extends TestCase {
12   public static final String EXPECTED = "testSample2ThatSetUpWasRun";
13   private String m_field = null;
14 
JUnitSample2()15   public JUnitSample2() {
16     super();
17   }
18 
JUnitSample2(String n)19   public JUnitSample2(String n) {
20     super(n);
21   }
22 
23   @Override
setUp()24   public void setUp() {
25     m_field = "foo";
26   }
27 
testSample2ThatSetUpWasRun()28   public void testSample2ThatSetUpWasRun() {
29     assert null != m_field : "setUp() wasn't run";
30   }
31 
32 }
33