use of uk.gov.gchq.gaffer.data.element.function.ElementTransformer in project Gaffer by gchq.
the class ViewElementDefinitionTest method shouldFailToBuildElementDefinitionWhenPostTransformFilterSpecifiedTwice.
@Test(expected = IllegalArgumentException.class)
public void shouldFailToBuildElementDefinitionWhenPostTransformFilterSpecifiedTwice() {
// Given
final ElementTransformer transformer = mock(ElementTransformer.class);
final ElementFilter postFilter = mock(ElementFilter.class);
// When
final ViewElementDefinition elementDef = new ViewElementDefinition.Builder().transientProperty(TestPropertyNames.PROP_1, String.class).transientProperty(TestPropertyNames.PROP_2, String.class).transformer(transformer).postTransformFilter(postFilter).postTransformFilter(postFilter).build();
}
Aggregations