Home | History | Annotate | Download | only in java
      1 
      2 import org.testng.annotations.AfterMethod;
      3 import org.testng.annotations.Test;
      4 
      5 /**
      6  * @author Filippo Diotalevi
      7  */
      8 public class NoPackageTest {
      9 	private boolean m_run = false;
     10 
     11 	@Test(groups = {"nopackage"})
     12 	public void test() {
     13 	   m_run = true;
     14 	}
     15 
     16    @AfterMethod(groups = {"nopackage"})
     17    public void after() {
     18       assert m_run : "test method was not run";
     19    }
     20 }
     21