diff --git a/java/src/test/java/europa/ec/dgc/bloomfilter/BloomFilterUnitTest.java b/java/src/test/java/europa/ec/dgc/bloomfilter/BloomFilterUnitTest.java index 1c89bf0..b3f271e 100644 --- a/java/src/test/java/europa/ec/dgc/bloomfilter/BloomFilterUnitTest.java +++ b/java/src/test/java/europa/ec/dgc/bloomfilter/BloomFilterUnitTest.java @@ -189,7 +189,7 @@ public void testProbabilistcRate() throws FilterException, IOException, NoSuchAl filter.add(new byte[]{8, 1, 2, 3, 6}); int falsePositives = doScans(filter, scans); - assert propScan >= (float) ((float) falsePositives / (float) scans); + assert propScan >= ((float) falsePositives / (float) scans); } @Test @@ -203,7 +203,7 @@ public void testProbabilistcRate2() throws FilterException, IOException, NoSuchA filter.add(new byte[]{8, 1, 2, 3, 6}); int falsePositives = doScans(filter, scans); - assert propScan >= (float) ((float) falsePositives / (float) scans); + assert propScan >= ((float) falsePositives / (float) scans); } @Test @@ -297,7 +297,7 @@ public void runBase64Test() throws FilterException, NoSuchAlgorithmException, IO /// END NEW - + public void runBloomFilterTest() throws FilterException, IOException, NoSuchAlgorithmException { assert this.testObjects != null; for (int i = 0; i < this.testObjects.size(); i++) {