Advertisement
ryltar0

Untitled

Jul 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.76 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package arithmethique;
  7.  
  8. import static org.testng.Assert.*;
  9. import org.testng.annotations.*;
  10.  
  11. /**
  12.  *
  13.  * @author guill
  14.  */
  15. public class TestNGDependsTest {
  16.     @Test
  17.     public void method1(){
  18.         System.out.println("@Test: method1");
  19.         assertTrue(false);
  20.     }
  21.    
  22.     @Test(dependsOnMethods={"method1"})
  23.     public void method2(){
  24.         System.out.println("@Test: method2");
  25.         assertTrue(true);
  26.     }
  27.    
  28.     @Test(dependsOnMethods={"method1", "method2"})
  29.     public void method3(){
  30.         System.out.println("@Test: method3");
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement