Update core-java-modules/core-java-numbers-7/src/test/java/com/baeldung/securerandompositivelong/SecureRandomPositiveLongUnitTest.java
rename Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
parent
fd4fb49426
commit
9002959a19
|
@ -9,7 +9,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
public class SecureRandomPositiveLongUnitTest {
|
||||
|
||||
@Test
|
||||
void whenGenerateRecureRandom_thenGetExpectedValue() {
|
||||
void whenGenerateRandomPositiveLong_thenGetPositiveValue() {
|
||||
SecureRandom secureRandom = new SecureRandom();
|
||||
long randomPositiveLong = Math.abs(secureRandom.nextLong());
|
||||
|
||||
|
|
Loading…
Reference in New Issue