1 package test.dependent;
2 
3 import org.testng.annotations.Test;
4 
5 import test.BaseTest;
6 
7 public class MissingGroupTest extends BaseTest {
8 
9   @Test
verifyThatExceptionIsThrownIfMissingGroup()10   public void verifyThatExceptionIsThrownIfMissingGroup() {
11     addClass("test.dependent.MissingGroupSampleTest");
12 
13     run();
14     String[] passed = {
15         "shouldNotBeSkipped"
16      };
17     String[] failed = {
18     };
19     String[] skipped = {
20       "shouldBeSkipped"
21     };
22     verifyTests("Failed", failed, getFailedTests());
23     verifyTests("Passed", passed, getPassedTests());
24     verifyTests("Skipped", skipped, getSkippedTests());
25 
26   }
27 
28 }
29