use of uk.gov.gchq.koryphe.Summary in project Gaffer by gchq.
the class OperationTest method shouldHaveSummaryAnnotation.
@Test
public void shouldHaveSummaryAnnotation() {
// Given
final T instance = getTestObject();
// When
final Summary annotation = instance.getClass().getAnnotation(Summary.class);
// Then
assertNotNull(annotation, "Missing Since annotation on class " + instance.getClass().getName());
assertNotNull(annotation.value(), "Missing Since annotation on class " + instance.getClass().getName());
assertTrue(SummaryUtil.validateSummaryString(annotation.value()), annotation.value() + " is not a valid value string.");
}
Aggregations