01: package test.testng59;
02:
03: import org.testng.Assert;
04: import org.testng.annotations.AfterClass;
05: import org.testng.annotations.Test;
06:
07: /**
08: * This class/interface
09: */
10: public class Test2 {
11: private boolean m_run = false;
12:
13: @Test
14: public void test2() {
15: m_run = true;
16: }
17:
18: @AfterClass
19: public void checkWasRun() {
20: Assert
21: .assertTrue(m_run,
22: "test2() should have been run according to testng-59.xml");
23: }
24: }
|