* This class/interface
*/
public class SkippedExceptionTest {
@Test
public void skippedExceptionInConfigurationMethods() {
TestListenerAdapter listener= new TestListenerAdapter();
TestNG test= new TestNG(false);
test.addListener(listener);
test.setVerbose(0);
test.setTestClasses(new Class[] {ConfigurationSkippedExceptionTest.class});
test.run();
List<ITestResult> confSkips= listener.getConfigurationSkips();
List<ITestResult> testSkips= listener.getSkippedTests();
Assert.assertEquals(testSkips.size(), 1);
Assert.assertEquals(testSkips.get(0).getMethod().getMethodName(), "dummyTest");
Assert.assertEquals(confSkips.size(), 1);
Assert.assertEquals(confSkips.get(0).getMethod().getMethodName(), "configurationLevelSkipException");