~ubuntu-branches/ubuntu/utopic/testng/utopic

« back to all changes in this revision

Viewing changes to test/src/test/factory/FactoryOrderSampleTest.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
package test.factory;
 
2
 
 
3
import org.testng.annotations.AfterClass;
 
4
import org.testng.annotations.BeforeClass;
 
5
import org.testng.annotations.Test;
 
6
 
 
7
public class FactoryOrderSampleTest {
 
8
 
 
9
  int value;
 
10
 
 
11
  public FactoryOrderSampleTest(int j) {
 
12
    value = j;
 
13
    log("classC constructor " + value);
 
14
  }
 
15
 
 
16
  private void log(String string) {
 
17
//    System.out.println(string);
 
18
  }
 
19
 
 
20
  @BeforeClass(groups = { "s1ds" })
 
21
  public void setup() {
 
22
    log("classC.BeforeClass " + value);
 
23
  }
 
24
 
 
25
  @Test(groups = { "s1ds" })
 
26
  public void methodC1() throws Exception {
 
27
//    Thread.sleep(1000);
 
28
    log("classC.methodC1 " + value);
 
29
  }
 
30
 
 
31
  @AfterClass(groups = { "s1ds" })
 
32
  public void cleanup() {
 
33
    log("classC.AfterClass " + value);
 
34
  }
 
35
 
 
36
  @Override
 
37
  public String toString() {
 
38
    return "[FactoryOrderSampleTest " + value + "]";
 
39
  }
 
40
  
 
41
  public int getValue() {
 
42
    return value;
 
43
  }
 
44
}
 
 
b'\\ No newline at end of file'