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.");
}
Aggregations