~ubuntu-branches/ubuntu/trusty/testng/trusty-proposed

« back to all changes in this revision

Viewing changes to test/src/test/tmp/A.java

  • Committer: Bazaar Package Importer
  • Author(s): Marcus Better
  • Date: 2009-07-23 12:11:17 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090723121117-k1so370589zvpef2
* Changed section to "java".
* debian/rules: Make it work with debhelper 7.3.5. (Closes: #538016)
* Use qdox 1.9 and add a patch for the API changes. Thanks to Ludovic
  Claude.
* debian/control: Bump policy version to 3.8.2.
* debian/control: Build with default-jdk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package test.tmp;
2
2
 
 
3
import org.testng.ITest;
 
4
import org.testng.annotations.AfterMethod;
 
5
import org.testng.annotations.DataProvider;
3
6
import org.testng.annotations.Test;
4
7
 
5
 
@Test
6
 
public class A extends Base {
7
 
    public void a1() {
8
 
        throw new RuntimeException();
9
 
    }
10
 
    
11
 
    public void a2() {}
12
 
 
13
 
    public void a3() {}
 
8
public class A implements ITest {
 
9
  
 
10
  @DataProvider
 
11
  public Object[][] dp() {
 
12
    return new Object[][] {
 
13
        new Object[] { "a" },
 
14
        new Object[] { "b" },
 
15
    };
 
16
  }
 
17
 
 
18
  @Test(groups = "mytest", dependsOnMethods = "g")
 
19
  public void f() {
 
20
  }
 
21
 
 
22
  @Test
 
23
  public void g() {
 
24
  }
 
25
 
 
26
  @AfterMethod
 
27
  public void after() {
 
28
  }
 
29
 
 
30
  public String getTestName() {
 
31
    return "Test name";
 
32
  }
14
33
}