logger.error("Could not load json schema ", e);
}
}
+ policyTypes.put(ImmutablePolicyType.builder().name("").schema("{}").build());
}
}
@LocalServerPort
private int port;
- private void keepServerAlive() {
+ private void keepServerAlive() throws InterruptedException {
logger.info("Keeping server alive!");
- try {
- synchronized (this) {
- this.wait();
- }
- } catch (Exception ex) {
- logger.error("Unexpected: " + ex);
+ synchronized (this) {
+ this.wait();
}
}
}
@Test
- @SuppressWarnings("squid:S2699") // Tests should include assertions. This test is only for keeping the server alive,
+ @SuppressWarnings("squid:S2699") // Tests should include assertions. This test is only for keeping the server
+ // alive,
// so it will only be confusing to add an assertion.
public void runMock() throws Exception {
keepServerAlive();