use of com.codingchili.core.testing.ContextMock in project chili-core by codingchili.
the class FileWatcherIT method setUp.
@Before
public void setUp() {
this.context = new ContextMock();
Delay.initialize(context);
}
use of com.codingchili.core.testing.ContextMock in project chili-core by codingchili.
the class ClusterListenerTest method setUp.
@Before
public void setUp(TestContext test) {
Async async = test.async();
this.context = new ContextMock();
this.handler = new TestHandler(context, REPLY_ADDRESS);
this.cluster = new ClusterListener().handler(handler).settings(new ListenerSettings());
context.listener(() -> cluster).onComplete(done -> {
if (done.failed()) {
done.cause().printStackTrace();
}
test.assertTrue(done.succeeded());
this.deployment = done.result();
async.complete();
});
}
use of com.codingchili.core.testing.ContextMock in project chili-core by codingchili.
the class ConfigurationsTest method setUp.
@Before
public void setUp() {
Configurations.shutdown();
context = new ContextMock();
}
use of com.codingchili.core.testing.ContextMock in project chili-core by codingchili.
the class ConsoleLoggerTest method setUp.
@BeforeClass
public static void setUp() {
context = new ContextMock();
logger = new ConsoleLogger(context, ConsoleLoggerTest.class);
}
Aggregations