Home | History | Annotate | Download | only in listeners
      1 package test.listeners;
      2 
      3 import org.testng.TestNG;
      4 import org.testng.annotations.Test;
      5 
      6 import test.SimpleBaseTest;
      7 import test.sample.Sample1;
      8 import junit.framework.Assert;
      9 
     10 public class ResultEndMillisTest extends SimpleBaseTest {
     11 
     12   @Test
     13   public void endMillisShouldBeNonNull() {
     14     TestNG tng = create(Sample1.class);
     15     tng.addListener(new ResultListener());
     16     tng.run();
     17 
     18     Assert.assertTrue(ResultListener.m_end > 0);
     19   }
     20 }
     21