• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.factory;
2 
3 import org.testng.Assert;
4 import org.testng.TestListenerAdapter;
5 import org.testng.TestNG;
6 import org.testng.annotations.Test;
7 
8 import test.SimpleBaseTest;
9 
10 public class DisabledFactoryTest extends SimpleBaseTest {
11 
12   @Test
disabledFactoryShouldNotRun()13   public void disabledFactoryShouldNotRun() {
14     TestNG tng = create(DisabledFactorySampleTest.class);
15     TestListenerAdapter tla = new TestListenerAdapter();
16     tng.run();
17 
18     Assert.assertEquals(tla.getPassedTests().size(), 0);
19     Assert.assertEquals(tla.getSkippedTests().size(), 0);
20     Assert.assertEquals(tla.getFailedTests().size(), 0);
21   }
22 }
23