Search in sources :

Example 1 with Since

use of uk.gov.gchq.koryphe.Since in project Gaffer by gchq.

the class OperationTest method shouldHaveSinceAnnotation.

@Test
public void shouldHaveSinceAnnotation() {
    // Given
    final T instance = getTestObject();
    // When
    final Since annotation = instance.getClass().getAnnotation(Since.class);
    // Then
    assertNotNull(annotation, "Missing Since annotation on class " + instance.getClass().getName());
    assertNotNull(annotation.value(), "Missing Since annotation on class " + instance.getClass().getName());
    assertTrue(VersionUtil.validateVersionString(annotation.value()), annotation.value() + " is not a valid value string.");
}
Also used : Since(uk.gov.gchq.koryphe.Since) 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 Since (uk.gov.gchq.koryphe.Since)1