Home | History | Annotate | Download | only in tmp
      1 package test.tmp;
      2 
      3 import org.testng.annotations.BeforeClass;
      4 import org.testng.annotations.Test;
      5 
      6 public class TestA {
      7     @BeforeClass
      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
     14     public void testGetA() {
     15         // Checks that 'A' is the first row on the table, and loads it.
     16     }
     17 
     18     @Test(dependsOnMethods = "testGetA")
     19     public void testViewA_Details1() {
     20         // Loads the first row (assumed A) and checks some details
     21     }
     22 
     23     @Test(dependsOnMethods = "testGetA")
     24     public void testViewA_Details2() {
     25         // Loads the first row (assumed A) and checks some details
     26     }
     27 
     28     @Test(dependsOnMethods = "testGetA")
     29     public void testViewA_Details3() {
     30         // Loads the first row (assumed A) and checks some details
     31     }
     32 
     33     @Test(dependsOnMethods = "testGetA")
     34     public void testViewA_Details4() {
     35         // Loads the first row (assumed A) and checks some details
     36     }
     37 }
     38