]> WPIA git - gigi.git/blobdiff - tests/club/wpia/gigi/crypto/key/KeyCheckTest.java
add: public key check searching for small primes (less than 10k)
[gigi.git] / tests / club / wpia / gigi / crypto / key / KeyCheckTest.java
index 203e830a350ebd72aa9119836bc88cee81d497a1..aaca8b87cd7b2b247133be0c2d41b88dc701a366 100644 (file)
@@ -29,8 +29,11 @@ public class KeyCheckTest {
             KeyCheck.checkKey(null);
             fail("Providing a null key should fail!");
         } catch (GigiApiException gae) {
-            assertTrue(true);
+            // Expected failure
         }
+
+        // Check that at least one key check has been loaded
+        assertFalse(KeyCheck.getChecks().isEmpty());
     }
 
 }