Update core-java-modules/core-java-uuid/src/test/java/com/baeldung/uuid/UUIDPositiveLongGeneratorUnitTest.java
Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
parent
13209f657c
commit
61ed752a1c
|
@ -9,7 +9,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
public class UUIDPositiveLongGeneratorUnitTest {
|
public class UUIDPositiveLongGeneratorUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whengetMostSignificantBits_thenAssertPositive() {
|
public void whenGetMostSignificantBits_thenAssertPositive() {
|
||||||
long randomPositiveLong = Math.abs(UUID.randomUUID().getMostSignificantBits());
|
long randomPositiveLong = Math.abs(UUID.randomUUID().getMostSignificantBits());
|
||||||
assertThat(randomPositiveLong).isPositive();
|
assertThat(randomPositiveLong).isPositive();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue