Search in sources :

Example 1 with Summary

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.");
}
Also used : Summary(uk.gov.gchq.koryphe.Summary) JSONSerialisationTest(uk.gov.gchq.gaffer.JSONSerialisationTest) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 JSONSerialisationTest (uk.gov.gchq.gaffer.JSONSerialisationTest)1 Summary (uk.gov.gchq.koryphe.Summary)1