Skip to content

Instantly share code, notes, and snippets.

@ParasoftExamples
Created September 5, 2018 15:21
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/5a4210eb830dd8bcda0abcc20ffa3832 to your computer and use it in GitHub Desktop.
Save ParasoftExamples/5a4210eb830dd8bcda0abcc20ffa3832 to your computer and use it in GitHub Desktop.
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