Skip to content

Instantly share code, notes, and snippets.

@ParasoftExamples
Created September 7, 2018 21:07
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/304155114c112e784753d467b6a5fd02 to your computer and use it in GitHub Desktop.
Save ParasoftExamples/304155114c112e784753d467b6a5fd02 to your computer and use it in GitHub Desktop.
Junit Parameterized Tests Example 6
@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