remove unused

This commit is contained in:
@hangga 2024-02-15 20:38:01 +07:00
parent 0c02b0edc2
commit 4bd5580405
2 changed files with 3 additions and 4 deletions

View File

@ -89,7 +89,7 @@
<source>${source.version}</source> <source>${source.version}</source>
<target>${target.version}</target> <target>${target.version}</target>
</configuration> </configuration>
</plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><source>8</source><target>8</target></configuration></plugin> </plugin>
</plugins> </plugins>
</build> </build>

View File

@ -11,13 +11,12 @@ 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).isNotNegative();
} }
@Test @Test
public void whenGetLeastSignificantBits_thenAssertPositive() { public void whenGetLeastSignificantBits_thenAssertPositive() {
long randomPositiveLong = Math.abs(UUID.randomUUID().getLeastSignificantBits()); long randomPositiveLong = Math.abs(UUID.randomUUID().getLeastSignificantBits());
assertThat(randomPositiveLong).isPositive(); assertThat(randomPositiveLong).isNotNegative();
} }
} }