Created
September 5, 2018 15:21
-
-
Save ParasoftExamples/5a4210eb830dd8bcda0abcc20ffa3832 to your computer and use it in GitHub Desktop.
Expedite the Creation of Junit Parameterized Tests - Example 2
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(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