Created
September 7, 2018 21:07
-
-
Save ParasoftExamples/304155114c112e784753d467b6a5fd02 to your computer and use it in GitHub Desktop.
Junit Parameterized Tests Example 6
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
@Test | |
public void testRequestLoan() throws Throwable | |
{ | |
// Given | |
LoanProcessor underTest = new LoanProcessor(); | |
// When | |
LoanResponse result = underTest.requestLoan(loanAmount, downPayment, availableFunds); | |
// Then | |
assertNotNull(result); | |
assertEquals(expectApproved, result.isApproved()); | |
assertEquals(expectedMessage, result.getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment