01: package test.dependent;
02:
03: import org.testng.annotations.Test;
04:
05: import test.BaseTest;
06:
07: public class MissingGroupTest extends BaseTest {
08:
09: @Test
10: public void verifyThatExceptionIsThrownIfMissingGroup() {
11: addClass("test.dependent.MissingGroupSampleTest");
12:
13: run();
14: String[] passed = {};
15: String[] failed = {};
16: String[] skipped = { "shouldBeSkipped" };
17: verifyTests("Failed", failed, getFailedTests());
18: verifyTests("Passed", passed, getPassedTests());
19: verifyTests("Skipped", skipped, getSkippedTests());
20:
21: }
22:
23: }
|