use of org.apache.geode.management.internal.cli.domain.DiskStoreDetails in project geode by apache.
the class DescribeDiskStoreFunctionJUnitTest method testSetPdxSerializationDetailsWhenPdxIsNotPersistent.
@Test
public void testSetPdxSerializationDetailsWhenPdxIsNotPersistent() {
final InternalCache mockCache = mockContext.mock(InternalCache.class, "Cache");
final DiskStore mockDiskStore = mockContext.mock(DiskStore.class, "DiskStore");
mockContext.checking(new Expectations() {
{
oneOf(mockCache).getPdxPersistent();
will(returnValue(false));
}
});
final DiskStoreDetails diskStoreDetails = new DiskStoreDetails("testDiskStore", "memberOne");
final DescribeDiskStoreFunction function = createDescribeDiskStoreFunction(mockCache);
function.setPdxSerializationDetails(mockCache, mockDiskStore, diskStoreDetails);
assertFalse(diskStoreDetails.isPdxSerializationMetaDataStored());
}
Aggregations