Search in sources :

Example 6 with LoggingServiceImpl

use of com.hazelcast.logging.impl.LoggingServiceImpl in project hazelcast by hazelcast.

the class OperationExecutorImpl_AbstractTest method setup.

@Before
public void setup() throws Exception {
    loggingService = new LoggingServiceImpl("foo", "jdk", new BuildInfo("1", "1", "1", 1, false, (byte) 1, "1"), true, null);
    serializationService = new DefaultSerializationServiceBuilder().build();
    config = smallInstanceConfig();
    thisAddress = new Address("localhost", 5701);
    Node node = Mockito.mock(Node.class);
    when(node.getConfig()).thenReturn(config);
    when(node.getProperties()).thenReturn(new HazelcastProperties(config));
    when(node.getVersion()).thenReturn(new MemberVersion(0, 0, 0));
    nodeExtension = new DefaultNodeExtension(node);
    handlerFactory = new DummyOperationRunnerFactory();
    responsePacketConsumer = new DummyResponsePacketConsumer();
}
Also used : DefaultSerializationServiceBuilder(com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder) HazelcastProperties(com.hazelcast.spi.properties.HazelcastProperties) DefaultNodeExtension(com.hazelcast.instance.impl.DefaultNodeExtension) Address(com.hazelcast.cluster.Address) LoggingServiceImpl(com.hazelcast.logging.impl.LoggingServiceImpl) BuildInfo(com.hazelcast.instance.BuildInfo) Node(com.hazelcast.instance.impl.Node) MemberVersion(com.hazelcast.version.MemberVersion) Before(org.junit.Before)

Aggregations

LoggingServiceImpl (com.hazelcast.logging.impl.LoggingServiceImpl)6 DefaultSerializationServiceBuilder (com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder)2 HazelcastProperties (com.hazelcast.spi.properties.HazelcastProperties)2 Before (org.junit.Before)2 Address (com.hazelcast.cluster.Address)1 BuildInfo (com.hazelcast.instance.BuildInfo)1 DefaultNodeExtension (com.hazelcast.instance.impl.DefaultNodeExtension)1 Node (com.hazelcast.instance.impl.Node)1 JsonObject (com.hazelcast.internal.json.JsonObject)1 ChannelErrorHandler (com.hazelcast.internal.networking.ChannelErrorHandler)1 NioNetworking (com.hazelcast.internal.networking.nio.NioNetworking)1 TestDataFactory (com.hazelcast.internal.server.TestDataFactory)1 TcpServerConnectionChannelErrorHandler (com.hazelcast.internal.server.tcp.TcpServerConnectionChannelErrorHandler)1 TcpServerContext (com.hazelcast.internal.server.tcp.TcpServerContext)1 ILogger (com.hazelcast.logging.ILogger)1 MemberVersion (com.hazelcast.version.MemberVersion)1 Level (java.util.logging.Level)1