• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.annotationtransformer;
2 
3 import org.testng.Assert;
4 import org.testng.TestNG;
5 import org.testng.annotations.Test;
6 
7 public class AnnotationTransformerSampleTest {
8 
9   private int m_two = 0;
10   private int m_five = 0;
11   private int m_three = 0;
12   private int m_four = 0;
13 
14   @Test(invocationCount = 2)
two()15   public void two() {
16     m_two++;
17   }
18 
19   @Test(invocationCount = 5)
four()20   public void four() {
21     m_four++;
22   }
23 
24   @Test(invocationCount = 5)
three()25   public void three() {
26     m_three++;
27   }
28 
29   @Test
five()30   public void five() {
31     m_five++;
32   }
33 
34   @Test(dependsOnMethods = {"two", "three", "four", "five"})
verify()35   public void verify() {
36     Assert.assertEquals(m_two, 2);
37     Assert.assertEquals(m_three, 3);
38     Assert.assertEquals(m_four, 4);
39     Assert.assertEquals(m_five, 5);
40   }
41 }
42