Enable PMD rule SimplifiableTestAssertion and fix violations

This commit is contained in:
Manuel Fuhr 2022-11-13 15:55:52 +01:00
parent 09a9c1a104
commit b1a88b01ab
9 changed files with 25 additions and 30 deletions

View file

@ -1,12 +1,12 @@
package btools.util;
import java.util.Random;
import java.util.HashMap;
import java.util.HashSet;
import org.junit.Assert;
import org.junit.Test;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Random;
public class DenseLongMapTest {
@Test
public void hashMapComparisonTest() {
@ -94,7 +94,7 @@ public class DenseLongMapTest {
}
// need to use the map again for valid memory measure
Assert.assertTrue("out of range test", dmap.getInt(-1) == -1);
Assert.assertEquals("out of range test", -1, dmap.getInt(-1));
}
}