use of com.yahoo.messagebus.jdisc.test.ServerTestDriver in project vespa by vespa-engine.
the class MbusServerTestCase method requireThatBindingSetNotFoundExceptionIsCaught.
@Test
public void requireThatBindingSetNotFoundExceptionIsCaught() {
ServerTestDriver driver = ServerTestDriver.newUnboundInstance(new MySelector("foo"));
assertTrue(driver.sendMessage(new SimpleMessage("bar")));
assertNotNull(driver.awaitErrors(ErrorCode.APP_FATAL_ERROR));
assertTrue(driver.close());
}
use of com.yahoo.messagebus.jdisc.test.ServerTestDriver in project vespa by vespa-engine.
the class MbusServerTestCase method requireThatContainerNotReadyExceptionIsCaught.
@Test
public void requireThatContainerNotReadyExceptionIsCaught() {
ServerTestDriver driver = ServerTestDriver.newInactiveInstance();
assertTrue(driver.sendMessage(new SimpleMessage("foo")));
assertNotNull(driver.awaitErrors(ErrorCode.APP_FATAL_ERROR));
assertTrue(driver.close());
}
Aggregations