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:
Hangga Aji Sayekti 2024-01-23 05:29:52 +07:00 committed by GitHub
parent fd4fb49426
commit 9002959a19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class SecureRandomPositiveLongUnitTest { public class SecureRandomPositiveLongUnitTest {
@Test @Test
void whenGenerateRecureRandom_thenGetExpectedValue() { void whenGenerateRandomPositiveLong_thenGetPositiveValue() {
SecureRandom secureRandom = new SecureRandom(); SecureRandom secureRandom = new SecureRandom();
long randomPositiveLong = Math.abs(secureRandom.nextLong()); long randomPositiveLong = Math.abs(secureRandom.nextLong());