use of com.tvd12.ezyhttp.server.core.EzyHttpApplication in project ezyhttp by youngmonkeys.
the class EzyHttpApplicationTest method testFailedDueToNoApplicationEntry.
@Test
public void testFailedDueToNoApplicationEntry() {
// given
ApplicationContext context = mock(ApplicationContext.class);
EzyHttpApplication sut = new EzyHttpApplication(context);
// when
Throwable e = Asserts.assertThrows(sut::start);
// then
Asserts.assertThat(e).isEqualsType(IllegalStateException.class);
verify(context, times(1)).getAnnotatedSingleton(ApplicationBootstrap.class);
}
Aggregations