use of org.infinispan.marshall.TestObjectStreamMarshaller in project infinispan by infinispan.
the class ConfigurationUnitTest method testConfigureMarshaller.
public void testConfigureMarshaller() {
GlobalConfigurationBuilder gc = new GlobalConfigurationBuilder();
TestObjectStreamMarshaller marshaller = new TestObjectStreamMarshaller();
gc.serialization().marshaller(marshaller);
withCacheManager(new CacheManagerCallable(createCacheManager(gc, new ConfigurationBuilder())) {
@Override
public void call() {
cm.getCache();
}
});
marshaller.stop();
}
use of org.infinispan.marshall.TestObjectStreamMarshaller in project infinispan by infinispan.
the class JCacheLoaderAdapterTest method setUpClass.
@BeforeClass
public static void setUpClass() {
TimeService timeService = new EmbeddedTimeService();
marshaller = new TestObjectStreamMarshaller();
MarshallableEntryFactory marshalledEntryFactory = new MarshalledEntryFactoryImpl(marshaller);
ctx = new DummyInitializationContext() {
@Override
public TimeService getTimeService() {
return timeService;
}
@Override
public MarshallableEntryFactory getMarshallableEntryFactory() {
return marshalledEntryFactory;
}
};
}
use of org.infinispan.marshall.TestObjectStreamMarshaller in project infinispan by infinispan.
the class JdbcStringBasedStoreAltMapperTest method createCacheStore.
@BeforeClass
public void createCacheStore() throws PersistenceException {
ConfigurationBuilder builder = TestCacheManagerFactory.getDefaultCacheConfiguration(false);
JdbcStringBasedStoreConfigurationBuilder storeBuilder = createJdbcConfig(builder);
UnitTestDatabaseManager.buildTableManipulation(storeBuilder.table());
UnitTestDatabaseManager.configureUniqueConnectionFactory(storeBuilder);
JdbcStringBasedStore jdbcStringBasedStore = new JdbcStringBasedStore();
cacheStore = new WaitDelegatingNonBlockingStore(jdbcStringBasedStore, SingleSegmentKeyPartitioner.getInstance());
marshaller = new TestObjectStreamMarshaller(TestDataSCI.INSTANCE);
cacheStore.startAndWait(PersistenceMockUtil.createContext(getClass(), builder.build(), marshaller));
tableManager = jdbcStringBasedStore.getTableManager();
}
Aggregations