]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/wot/TestAssurance.java
fix: number-format-exception thrown on assurance entry
[gigi.git] / tests / org / cacert / gigi / pages / wot / TestAssurance.java
index d626cee0a3e55c18a37c0efd39473df368cc07ae..6a585abd4e1dc64acdae125289cc8bcb596be2b1 100644 (file)
@@ -53,6 +53,12 @@ public class TestAssurance extends ManagedTest {
         assertTrue(loc, !loc.contains("type=\"checkbox\" name=\"tos_agree\""));
     }
 
+    @Test
+    public void testAssureSearchDobInvalid() throws IOException {
+        String loc = search("email=" + URLEncoder.encode(assureeM, "UTF-8") + "&day=1&month=1&year=mal");
+        assertNotNull(fetchStartErrorMessage(loc));
+    }
+
     @Test
     public void testAssureSearchDob() throws IOException {
         String loc = search("email=" + URLEncoder.encode(assureeM, "UTF-8") + "&day=2&month=1&year=1910");