use of ratpack.server.RatpackServer in project ratauth by alfa-laboratory.
the class RatAuthServerTest method testRatpackServerBeanShouldStartsWithDefaultConfiguration.
@Test
public void testRatpackServerBeanShouldStartsWithDefaultConfiguration() throws UnknownHostException {
registerAndRefresh(TestDefaultConfiguration.class);
RatpackServer ratpackServer = this.context.getBean(RatpackServer.class);
assertThat(ratpackServer.getBindPort()).isEqualTo(DEFAULT_RATPACK_PORT);
}
use of ratpack.server.RatpackServer in project ratauth by alfa-laboratory.
the class RatAuthServerTest method testRatpackServerBeanShouldCustomizeServerPort.
@Test
public void testRatpackServerBeanShouldCustomizeServerPort() throws UnknownHostException {
registerAndRefresh(TestDefaultConfiguration.class, "ratpack.port=6060");
RatpackServer ratpackServer = this.context.getBean(RatpackServer.class);
assertThat(ratpackServer.getBindPort()).isEqualTo(6060);
}
Aggregations