use of com.hazelcast.config.SerializerConfig in project hazelcast by hazelcast.
the class SerializerHookLoaderTest method testLoad_typeException.
@Test(expected = HazelcastSerializationException.class)
public void testLoad_typeException() throws Exception {
SerializerConfig serializerConfig = new SerializerConfig();
serializerConfig.setClassName("com.hazelcast.internal.serialization.impl.TestSerializerHook$TestSerializer");
serializerConfig.setTypeClassName("NOT FOUND CLASS");
SerializationConfig serializationConfig = getConfig().getSerializationConfig();
serializationConfig.addSerializerConfig(serializerConfig);
new SerializerHookLoader(serializationConfig, classLoader);
}
use of com.hazelcast.config.SerializerConfig in project hazelcast by hazelcast.
the class SerializerHookLoaderTest method testLoad_implException.
@Test(expected = HazelcastSerializationException.class)
public void testLoad_implException() throws Exception {
SerializerConfig serializerConfig = new SerializerConfig();
serializerConfig.setClassName("NOT FOUND CLASS");
serializerConfig.setTypeClassName("com.hazelcast.nio.serialization.SampleIdentifiedDataSerializable");
SerializationConfig serializationConfig = getConfig().getSerializationConfig();
serializationConfig.addSerializerConfig(serializerConfig);
new SerializerHookLoader(serializationConfig, classLoader);
}
Aggregations