~ubuntu-branches/ubuntu/precise/surefire/precise

« back to all changes in this revision

Viewing changes to surefire-integration-tests/src/test/resources/surefire-621-testCounting-junit3-in-parallel/src/it/java/mho/MySuiteTest3.java

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2011-10-10 20:42:16 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20111010204216-cemva69wkagf4fay
Tags: 2.10-1
* Team upload.
* New upstream release.
* Refresh and remove unneccesary patches.
* Add Build-Depends on libsurefire-java and
  libmaven-common-artifact-filters-java.
* Drop outdated Maven artifact surefire-junit.
* Provide new Maven artifacts: surefire-junit3, maven-surefire-common,
  common-junit3, common-junit4, surefire-junit47 and surefire-testng-utils.
* Fix clean target to allow "two in a row" builds.
* Update Vcs-Browser field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package mho;
 
2
 
 
3
import junit.framework.Test;
 
4
import junit.framework.TestCase;
 
5
import junit.framework.TestSuite;
 
6
 
 
7
public class MySuiteTest3 extends TestCase {
 
8
 
 
9
    public static Test suite () {
 
10
        TestSuite suite = new TestSuite();
 
11
 
 
12
        suite.addTest (new MySuiteTest3("testMe", 1));
 
13
        suite.addTest (new MySuiteTest3("testMe", 2));
 
14
        suite.addTest (new MySuiteTest3("testMe", 3));
 
15
 
 
16
        return suite;
 
17
    }
 
18
 
 
19
    private final int number;
 
20
 
 
21
    public MySuiteTest3(String name, int number) {
 
22
        super (name);
 
23
        this.number = number;
 
24
    }
 
25
 
 
26
    public void testMe() {
 
27
        System.out.println ("### "+ this.getClass().getName()+":"+this.getName()+" - number "+number);
 
28
        assertTrue (true);
 
29
    }
 
30
}