-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version 1.5.0 with data provider from another class
- Loading branch information
Andreas Schmid
committed
May 3, 2013
1 parent
6144f9d
commit cbc6276
Showing
6 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/test/java/com/tngtech/test/java/junit/dataprovider/StringDataProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.tngtech.test.java.junit.dataprovider; | ||
|
||
import com.tngtech.java.junit.dataprovider.DataProvider; | ||
|
||
public class StringDataProvider { | ||
|
||
@DataProvider | ||
public static Object[][] dataProviderIsStringLengthGreaterTwo() { | ||
// @formatter:off | ||
return new Object[][] { | ||
{ "", false }, | ||
{ "1", false }, | ||
{ "12", false }, | ||
{ "123", true }, | ||
{ "Test", true }, | ||
}; | ||
// @formatter:on | ||
} | ||
} |