+ @Test
+ public void testAssureListingValid() throws IOException {
+ String uniqueLoc = createUniqueName();
+ String error = getError("date=2000-01-01&location=" + uniqueLoc + "&certify=1&rules=1&CCAAgreed=1&assertion=1&points=10");
+ assertNull(error);
+ String cookie = login(assureeM, TEST_PASSWORD);
+ URLConnection url = new URL("https://" + getServerName() + MyPoints.PATH).openConnection();
+ url.setRequestProperty("Cookie", cookie);
+ String resp = IOUtils.readURL(url);
+ resp = resp.split(Pattern.quote("</table>"))[0];
+ assertTrue(resp.contains(uniqueLoc));
+ }
+
+
+ @Test
+ public void testAssurerListingValid() throws IOException {
+ String uniqueLoc = createUniqueName();
+ String error = getError("date=2000-01-01&location=" + uniqueLoc + "&certify=1&rules=1&CCAAgreed=1&assertion=1&points=10");
+ assertNull(error);
+ String cookie = login(assurerM, TEST_PASSWORD);
+ URLConnection url = new URL("https://" + getServerName() + MyPoints.PATH).openConnection();
+ url.setRequestProperty("Cookie", cookie);
+ String resp = IOUtils.readURL(url);
+ resp = resp.split(Pattern.quote("</table>"))[1];
+ assertTrue(resp.contains(uniqueLoc));
+ }
+