Created
September 7, 2018 20:52
-
-
Save ParasoftExamples/b6f712fc7328d00a175a1b244a9365c4 to your computer and use it in GitHub Desktop.
Junit Parameterized Tests Example 3
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
@RunWith(Parameterized.class) | |
public class LoanProcessorParameterizedTest { | |
float loanAmount; | |
float downPayment; | |
float availableFunds; | |
boolean expectApproved; | |
String expectedMessage; | |
public LoanProcessorParameterizedTest(float loanAmount, float downPayment, | |
float availableFunds, boolean expectApproved, String expectedMessage) | |
{ | |
this.loanAmount = loanAmount; | |
this.downPayment = downPayment; | |
this.availableFunds = availableFunds; | |
this.expectApproved = expectApproved; | |
this.expectedMessage = expectedMessage; | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment