Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Expedite the Creation of Junit Parameterized Tests - Example 2
@Test
public void testRequestLoan() throws Throwable
{
// Given
LoanProcessor underTest = new LoanProcessor();
// When
LoanResponse result = underTest.requestLoan(1000f, 200f, 250f);
// Then
assertNotNull(result);
assertTrue(result.isApproved());
assertNull(result.getMessage());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment