01: package test.junit;
02:
03: import org.testng.annotations.Test;
04:
05: public class SetUpExceptionTest extends test.BaseTest {
06:
07: @Test
08: public void setUpFailingShouldCauseMethodsToBeSkipped() {
09: addClass("test.junit.SetUpExceptionSampleTest");
10: setJUnit(true);
11: run();
12: String[] passed = {};
13: String[] failed = { "setUp" };
14: String[] skipped = { "testM1", "tearDown" };
15: verifyTests("Passed", passed, getPassedTests());
16: verifyTests("Skipped", skipped, getSkippedTests());
17: verifyTests("Failed", failed, getFailedTests());
18: }
19: }
|