• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.tmp;
2 
3 import org.testng.annotations.BeforeClass;
4 import org.testng.annotations.Test;
5 
6 public class TestA {
7     @BeforeClass
insertA()8     public void insertA() {
9         // Inserts an entity 'A'. This is an expensive operation.
10         // After this, the entity 'A' is the first row on the table.
11     }
12 
13     @Test
testGetA()14     public void testGetA() {
15         // Checks that 'A' is the first row on the table, and loads it.
16     }
17 
18     @Test(dependsOnMethods = "testGetA")
testViewA_Details1()19     public void testViewA_Details1() {
20         // Loads the first row (assumed A) and checks some details
21     }
22 
23     @Test(dependsOnMethods = "testGetA")
testViewA_Details2()24     public void testViewA_Details2() {
25         // Loads the first row (assumed A) and checks some details
26     }
27 
28     @Test(dependsOnMethods = "testGetA")
testViewA_Details3()29     public void testViewA_Details3() {
30         // Loads the first row (assumed A) and checks some details
31     }
32 
33     @Test(dependsOnMethods = "testGetA")
testViewA_Details4()34     public void testViewA_Details4() {
35         // Loads the first row (assumed A) and checks some details
36     }
37 }
38