blob: 1dbe3b036a0f2ceef15163c85e0f9a89c54dc509 [file] [log] [blame]
package test.factory.classconf;
import org.testng.Assert;
import org.testng.TestListenerAdapter;
import org.testng.TestNG;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/**
* This class/interface
*/
public class XClassOrderWithFactoryTest {
@Test
public void testBeforeAfterClassInvocationsWithFactory() {
TestNG testng= new TestNG();
testng.setTestClasses(new Class[] {XClassOrderWithFactory.class});
TestListenerAdapter tla = new TestListenerAdapter();
testng.addListener(tla);
testng.setVerbose(0);
testng.run();
Assert.assertEquals(XClassOrderWithFactory.LOG.toString(), XClassOrderWithFactory.EXPECTED_LOG);
}
}