package org.cacert.gigi.pages.wot;
+import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.io.IOException;
url.setRequestProperty("Cookie", cookie);
String resp = IOUtils.readURL(url);
resp = resp.split(Pattern.quote("</table>"))[0];
- assertTrue(resp.contains(uniqueLoc));
+ assertThat(resp, containsString(uniqueLoc));
}
@Test
url.setRequestProperty("Cookie", cookie);
String resp = IOUtils.readURL(url);
resp = resp.split(Pattern.quote("</table>"))[1];
- assertTrue(resp.contains(uniqueLoc));
+ assertThat(resp, containsString(uniqueLoc));
}
private String getError(String query) throws MalformedURLException, IOException {