public static void clearCaches() throws IOException {
ObjectCache.clearAllCaches();
- String type = testProps.getProperty("type");
+ // String type = testProps.getProperty("type");
URL u = new URL("https://" + getServerName() + "/manage");
u.openConnection().getHeaderField("Location");
}
@After
public void clearAcceptLanguage() {
- acceptLanguage = null;
+ ManagedTest.setAcceptLanguage(null);
}
public TestMail waitForMail() {
- try {
- return ter.recieve();
- } catch (InterruptedException e) {
- throw new Error(e);
+ TestMail mail = null;
+ while (null == mail) {
+ try {
+ mail = ter.recieve();
+ } catch (InterruptedException e) {
+ throw new Error(e);
+ }
}
+ return mail;
}
public static TestEmailReciever getMailReciever() {