Browse Source

should Not Create Account when Status is null

feature-pr-AccountService
Sona Markosyan 3 years ago
parent
commit
43029d27be
  1. 8
      src/test/java/hs/fulda/de/ci/exam/project/AccountServiceTest.java

8
src/test/java/hs/fulda/de/ci/exam/project/AccountServiceTest.java

@ -115,4 +115,12 @@ public class AccountServiceTest {
});
}
@Test
@DisplayName("Should Not Create Account when status is null")
public void shouldThrowRuntimeExceptionWhenStatusIsNull(){
assertThrows(RuntimeException.class, () -> {
accountService.createAccount("John", "", null);
});
}
}
Loading…
Cancel
Save