use of com.codingchili.core.context.SystemContext in project chili-core by codingchili.
the class BusRouterTest method setUp.
@Before
public void setUp() {
core = new SystemContext();
system().setClusterTimeout(500);
router = new BusRouter() {
@Override
public void onNodeTimeout(Request request) {
nodeTimeout.set(true);
super.onNodeTimeout(request);
}
@Override
public void onNodeNotReachable(Request request) {
nodeUnreachable.set(true);
super.onNodeNotReachable(request);
}
@Override
public void onRecipientFailure(Request request) {
recipientFailure.set(true);
super.onRecipientFailure(request);
}
};
router.init(core);
}
use of com.codingchili.core.context.SystemContext in project chili-core by codingchili.
the class ClusteredSessionTest method setUp.
@Before
public void setUp(TestContext test) {
Async async = test.async();
core = new SystemContext();
sessionFactory = new SessionFactoryMock(core);
sessionFactory.create(home, connectionId).onComplete(created -> {
session = created.result();
async.complete();
});
}
use of com.codingchili.core.context.SystemContext in project chili-core by codingchili.
the class HashFactoryTest method setUp.
@Before
public void setUp() {
context = new SystemContext();
hasher = new HashFactory(context);
executor = context.vertx().createSharedWorkerExecutor("worker_pool_name", 8);
}
use of com.codingchili.core.context.SystemContext in project chili-core by codingchili.
the class ByteComparatorTest method setUp.
@Before
public void setUp() {
context = new SystemContext();
hasher = new HashFactory(context);
}
use of com.codingchili.core.context.SystemContext in project chili-core by codingchili.
the class TokenFactoryTest method setUp.
@BeforeClass
public static void setUp() {
context = new SystemContext();
tokenFactory = new TokenFactory(context, secret);
tokenFactory2 = new TokenFactory(context, secret2);
}
Aggregations