Search in sources :

Example 11 with TransformationDescriptor

use of cz.o2.proxima.repository.TransformationDescriptor in project proxima-platform by O2-Czech-Republic.

the class DirectDataOperatorTest method testReplicationTransformsHaveFilter.

@Test
public void testReplicationTransformsHaveFilter() {
    repo.reloadConfig(true, ConfigFactory.load().withFallback(ConfigFactory.load("test-replication.conf")).withFallback(ConfigFactory.load("test-reference.conf")).resolve());
    TransformationDescriptor desc = repo.getTransformations().get("_dummyReplicationMasterSlave_slave");
    assertNotNull(desc);
    assertEquals(DummyFilter.class, desc.getFilter().getClass());
}
Also used : TransformationDescriptor(cz.o2.proxima.repository.TransformationDescriptor) Test(org.junit.Test)

Aggregations

TransformationDescriptor (cz.o2.proxima.repository.TransformationDescriptor)8 Test (org.junit.Test)6 EntityDescriptor (cz.o2.proxima.repository.EntityDescriptor)5 StreamElement (cz.o2.proxima.storage.StreamElement)4 CommitLogReader (cz.o2.proxima.direct.commitlog.CommitLogReader)3 DirectElementWiseTransform (cz.o2.proxima.direct.transform.DirectElementWiseTransform)3 TransformationObserver (cz.o2.proxima.direct.transform.TransformationObserver)3 StorageFilter (cz.o2.proxima.storage.StorageFilter)3 StorageType (cz.o2.proxima.storage.StorageType)3 ArrayList (java.util.ArrayList)3 Stream (java.util.stream.Stream)3 Slf4j (lombok.extern.slf4j.Slf4j)3 VisibleForTesting (com.google.common.annotations.VisibleForTesting)2 ConfigFactory (com.typesafe.config.ConfigFactory)2 CommitLogObserver (cz.o2.proxima.direct.commitlog.CommitLogObserver)2 DirectAttributeFamilyDescriptor (cz.o2.proxima.direct.core.DirectAttributeFamilyDescriptor)2 DirectDataOperator (cz.o2.proxima.direct.core.DirectDataOperator)2 AttributeDescriptor (cz.o2.proxima.repository.AttributeDescriptor)2 Repository (cz.o2.proxima.repository.Repository)2 InputTransactionMode (cz.o2.proxima.repository.TransformationDescriptor.InputTransactionMode)2