Search in sources :

Example 1 with AbstractStorage

use of cz.o2.proxima.storage.AbstractStorage in project proxima-platform by O2-Czech-Republic.

the class AbstractStorageTest method testAbstractStorageNotSerializable.

@Test
public void testAbstractStorageNotSerializable() {
    AbstractStorage storage = getStorage(gateway);
    assertThrows(NotSerializableException.class, () -> TestUtils.serializeObject(storage));
}
Also used : SerializableAbstractStorage(cz.o2.proxima.storage.AbstractStorage.SerializableAbstractStorage) Test(org.junit.Test)

Example 2 with AbstractStorage

use of cz.o2.proxima.storage.AbstractStorage in project proxima-platform by O2-Czech-Republic.

the class AbstractStorageTest method testSerializable.

@Test
public void testSerializable() throws IOException, ClassNotFoundException {
    AbstractStorage storage = getSerializableStorage(gateway);
    TestUtils.assertSerializable(storage);
}
Also used : SerializableAbstractStorage(cz.o2.proxima.storage.AbstractStorage.SerializableAbstractStorage) Test(org.junit.Test)

Aggregations

SerializableAbstractStorage (cz.o2.proxima.storage.AbstractStorage.SerializableAbstractStorage)2 Test (org.junit.Test)2