Last active
August 29, 2015 14:25
-
-
Save zdwolfe/8bfd7007e5fe862314a2 to your computer and use it in GitHub Desktop.
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
@DataProvider(name = "testStringProvider") | |
public Object[][] testStringProvider() { | |
return new Object[][] { | |
{ "blue", "BLUE" }, | |
{ "red", "RED"} | |
}; | |
} | |
@Test(dataProvider = "testStringProvider") | |
public void shouldConvertToUpperCase(String inputString, String expected ) { | |
final String actual = inputString.toUpperCase(); | |
assertThat(actual, is(expected)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment