Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeust committed Jan 5, 2010
1 parent c319bb5 commit 4aa07e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -5,6 +5,7 @@ Fixed: The TextReporter reports skipped tests as PASSED (Ankur Agrawal)

Eclipse:

Added: New file wizard: can now create a class with annotations, including @DataProvider
Added: You can now select multiple XML suites to be run in the launch dialog
Fixed: The custom XML file is now created in the temp directory instead of inside the project
Fixed: In the launch dialog, now display an error if trying to pick groups when no project is selected
Expand Down
17 changes: 11 additions & 6 deletions test/src/test/tmp/A.java
@@ -1,15 +1,10 @@
package test.tmp;

import org.testng.ITest;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

import java.util.regex.Pattern;

public class A implements ITest {

public static void main(String[] args) {
Expand All @@ -34,11 +29,21 @@ public Object[][] dp() {
};
}

@BeforeMethod
public void bm() {
throw new RuntimeException();
}

@Test(dataProvider = "dp")
public void verifyIPAddress(Integer ip) {
if (ip == 2) throw new RuntimeException();
}

@Test
public void f() {

}

// @BeforeSuite
// public void bs() {
// System.out.println("Before suite");
Expand Down

0 comments on commit 4aa07e2

Please sign in to comment.