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();
}
Aggregations