• 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 FactoryInSuperClassTest extends SimpleBaseTest {
11 
12   @Test
factoryInSuperClassShouldWork()13   public void factoryInSuperClassShouldWork() {
14     TestNG tng = create(FactoryChild.class);
15     TestListenerAdapter tla = new TestListenerAdapter();
16     tng.addListener(tla);
17     tng.run();
18 
19     Assert.assertEquals(tla.getPassedTests().size(), 1);
20   }
21 }
22