use of org.kie.workbench.common.stunner.core.validation.impl.ElementViolationImpl in project kie-wb-common by kiegroup.
the class DMNClientDiagramValidatorTest method testOnValidatorSuccess.
@Test
public void testOnValidatorSuccess() {
final ElementViolationImpl elementViolation = new ElementViolationImpl.Builder().build();
final MarshallingMessage marshallingMessage = MarshallingMessage.builder().build();
final Collection<DiagramElementViolation<RuleViolation>> diagramElementViolations = singletonList(elementViolation);
final Collection<DomainViolation> response = singletonList(marshallingMessage);
final Consumer<Collection<DiagramElementViolation<RuleViolation>>> resultConsumer = (collection) -> {
assertEquals(1, collection.size());
};
validator.onValidatorSuccess(diagramElementViolations, resultConsumer).callback(response);
}
Aggregations