Search in sources :

Example 1 with TestDataFactory

use of com.hazelcast.internal.server.TestDataFactory in project hazelcast by hazelcast.

the class TcpServerConnection_AbstractTest method setup.

@Before
public void setup() throws Exception {
    loggingService = new LoggingServiceImpl("somegroup", "log4j2", BuildInfoProvider.getBuildInfo(), true, null);
    logger = loggingService.getLogger(TcpServerConnection_AbstractTest.class);
    metricsRegistryA = newMetricsRegistry();
    tcpServerA = newMockTcpServer(metricsRegistryA);
    serverContextA = (MockServerContext) tcpServerA.getContext();
    addressA = serverContextA.getThisAddress();
    metricsRegistryB = newMetricsRegistry();
    tcpServerB = newMockTcpServer(metricsRegistryB);
    serverContextB = (MockServerContext) tcpServerB.getContext();
    addressB = serverContextB.getThisAddress();
    metricsRegistryC = newMetricsRegistry();
    tcpServerC = newMockTcpServer(metricsRegistryC);
    serverContextC = (MockServerContext) tcpServerC.getContext();
    addressC = serverContextC.getThisAddress();
    serializationService = new DefaultSerializationServiceBuilder().addDataSerializableFactory(TestDataFactory.FACTORY_ID, new TestDataFactory()).build();
}
Also used : DefaultSerializationServiceBuilder(com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder) LoggingServiceImpl(com.hazelcast.logging.impl.LoggingServiceImpl) TestDataFactory(com.hazelcast.internal.server.TestDataFactory) Before(org.junit.Before)

Aggregations

DefaultSerializationServiceBuilder (com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder)1 TestDataFactory (com.hazelcast.internal.server.TestDataFactory)1 LoggingServiceImpl (com.hazelcast.logging.impl.LoggingServiceImpl)1 Before (org.junit.Before)1