Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package arithmethique;
- import static org.testng.Assert.*;
- import org.testng.annotations.*;
- /**
- *
- * @author guill
- */
- public class TestNGDependsTest {
- @Test
- public void method1(){
- System.out.println("@Test: method1");
- assertTrue(false);
- }
- @Test(dependsOnMethods={"method1"})
- public void method2(){
- System.out.println("@Test: method2");
- assertTrue(true);
- }
- @Test(dependsOnMethods={"method1", "method2"})
- public void method3(){
- System.out.println("@Test: method3");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement