use of com.couchbase.client.core.deps.io.netty.channel.nio.NioEventLoopGroup in project couchbase-jvm-clients by couchbase.
the class KeyValueChannelIntegrationTest method beforeAll.
@BeforeAll
static void beforeAll() {
TestNodeConfig node = config().nodes().get(0);
env = environment().eventBus(eventBus).build();
Core core = Core.create(env, authenticator(), seedNodes());
endpointContext = new EndpointContext(core.context(), new HostAndPort(node.hostname(), node.ports().get(Services.KV)), null, ServiceType.KV, Optional.empty(), Optional.of(config().bucketname()), Optional.empty());
eventLoopGroup = new NioEventLoopGroup(1);
}
use of com.couchbase.client.core.deps.io.netty.channel.nio.NioEventLoopGroup in project couchbase-jvm-clients by couchbase.
the class BaseEndpointTest method beforeEach.
@BeforeEach
void beforeEach() {
eventLoopGroup = new NioEventLoopGroup(1);
eventBus = new SimpleEventBus(true, Collections.singletonList(EndpointStateChangedEvent.class));
environment = CoreEnvironment.builder().eventBus(eventBus).build();
CoreContext coreContext = new CoreContext(mock(Core.class), 1, environment, authenticator);
ctx = new ServiceContext(coreContext, LOCALHOST, 1234, ServiceType.KV, Optional.empty());
}
Aggregations