|
|
@ -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); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |