Search in sources :

Example 1 with CallIdSequenceWithoutBackpressure

use of com.hazelcast.spi.impl.sequence.CallIdSequenceWithoutBackpressure in project hazelcast by hazelcast.

the class InboundResponseHandlerSupplierTest method setup.

@Before
public void setup() {
    ILogger logger = Logger.getLogger(getClass());
    HazelcastProperties properties = new HazelcastProperties(new Properties());
    invocationRegistry = new InvocationRegistry(logger, new CallIdSequenceWithoutBackpressure(), properties);
    serializationService = new DefaultSerializationServiceBuilder().build();
    nodeEngine = mock(NodeEngine.class);
    when(nodeEngine.getLogger(any(Class.class))).thenReturn(logger);
    when(nodeEngine.getSerializationService()).thenReturn(serializationService);
}
Also used : DefaultSerializationServiceBuilder(com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder) NodeEngine(com.hazelcast.spi.impl.NodeEngine) HazelcastProperties(com.hazelcast.spi.properties.HazelcastProperties) CallIdSequenceWithoutBackpressure(com.hazelcast.spi.impl.sequence.CallIdSequenceWithoutBackpressure) ILogger(com.hazelcast.logging.ILogger) Properties(java.util.Properties) HazelcastProperties(com.hazelcast.spi.properties.HazelcastProperties) Before(org.junit.Before)

Aggregations

DefaultSerializationServiceBuilder (com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder)1 ILogger (com.hazelcast.logging.ILogger)1 NodeEngine (com.hazelcast.spi.impl.NodeEngine)1 CallIdSequenceWithoutBackpressure (com.hazelcast.spi.impl.sequence.CallIdSequenceWithoutBackpressure)1 HazelcastProperties (com.hazelcast.spi.properties.HazelcastProperties)1 Properties (java.util.Properties)1 Before (org.junit.Before)1