~ubuntu-branches/ubuntu/utopic/testng/utopic

« back to all changes in this revision

Viewing changes to test/src/test/groupinvocation/DummyTest2.java

  • Committer: Bazaar Package Importer
  • Author(s): Marcus Better
  • Date: 2009-05-04 10:47:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090504104743-1gbwsis9q1fh3aaj
Tags: upstream-5.9+dfsg
ImportĀ upstreamĀ versionĀ 5.9+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package test.groupinvocation;
 
2
 
 
3
import org.testng.Assert;
 
4
import org.testng.annotations.AfterClass;
 
5
import org.testng.annotations.Test;
 
6
 
 
7
 
 
8
/**
 
9
 * This class/interface 
 
10
 */
 
11
public class DummyTest2 {
 
12
  private boolean m_invoked= false;
 
13
  
 
14
  @Test(groups={"A"})
 
15
  public void dummyTest() {
 
16
    m_invoked= true;
 
17
  }
 
18
  
 
19
  @AfterClass(alwaysRun=true)
 
20
  public void checkInvocations() {
 
21
    Assert.assertFalse(m_invoked, "@Test method invoked even if @BeforeGroups failed");
 
22
  }
 
23
}