Skip to content

Instantly share code, notes, and snippets.

@ParasoftExamples
Created September 7, 2018 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ParasoftExamples/85f9efae920bae0881b1f1fdfa93ed1e to your computer and use it in GitHub Desktop.
Save ParasoftExamples/85f9efae920bae0881b1f1fdfa93ed1e to your computer and use it in GitHub Desktop.
Junit Parameterized Tests Example 4
@Parameters(name = "Run {index}: loanAmount={0}, downPayment={1}, availableFunds={2}, expectApproved={3}, expectedMessage={4}")
public static Iterable<Object[]> data() throws Throwable
{
return Arrays.asList(new Object[][] {
{ 1000.0f, 200.0f, 250.0f, true, null }
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment