Search in sources :

Example 1 with RouterContext

use of com.codingchili.router.configuration.RouterContext in project chili-core by codingchili.

the class RouterHandlerTest method setUp.

@Before
public void setUp() {
    core = new SystemContext();
    system().setClusterTimeout(500);
    handler = new RouterHandler(new RouterContext(core) {

        @Override
        public RouterSettings service() {
            return new RouterSettings().addExternal(NODE_WEBSERVER, ".*");
        }
    });
    handler.init(core);
}
Also used : RouterSettings(com.codingchili.router.configuration.RouterSettings) SystemContext(com.codingchili.core.context.SystemContext) RouterContext(com.codingchili.router.configuration.RouterContext) Before(org.junit.Before)

Aggregations

SystemContext (com.codingchili.core.context.SystemContext)1 RouterContext (com.codingchili.router.configuration.RouterContext)1 RouterSettings (com.codingchili.router.configuration.RouterSettings)1 Before (org.junit.Before)1