Search in sources :

Example 1 with ImmutableProtoStreamMarshaller

use of org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller in project infinispan by infinispan.

the class ProtostreamUserMarshallerTest method testProtostreamMarshallerLoaded.

public void testProtostreamMarshallerLoaded() {
    PersistenceMarshaller pm = TestingUtil.extractPersistenceMarshaller(manager(0));
    testIsMarshallableAndPut(pm, new ExampleUserPojo("A Pojo!"), new AnotherExampleUserPojo("And another one!"));
    DelegatingUserMarshaller userMarshaller = (DelegatingUserMarshaller) pm.getUserMarshaller();
    assertTrue(userMarshaller.getDelegate() instanceof ImmutableProtoStreamMarshaller);
}
Also used : ImmutableProtoStreamMarshaller(org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller) DelegatingUserMarshaller(org.infinispan.marshall.core.impl.DelegatingUserMarshaller) PersistenceMarshaller(org.infinispan.marshall.persistence.PersistenceMarshaller)

Aggregations

ImmutableProtoStreamMarshaller (org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller)1 DelegatingUserMarshaller (org.infinispan.marshall.core.impl.DelegatingUserMarshaller)1 PersistenceMarshaller (org.infinispan.marshall.persistence.PersistenceMarshaller)1