Search in sources :

Example 1 with FilterExpressionPath

use of com.yahoo.elide.annotation.FilterExpressionPath in project elide by yahoo.

the class EntityDictionaryTest method testAnnotationFilterExpressionPath.

@Test
public void testAnnotationFilterExpressionPath() {
    bindEntity(Book.class);
    FilterExpressionPath fe = getMethodAnnotation(ClassType.of(Book.class), "getEditor", FilterExpressionPath.class);
    assertEquals("publisher.editor", fe.value());
}
Also used : FilterExpressionPath(com.yahoo.elide.annotation.FilterExpressionPath) Book(example.Book) Test(org.junit.jupiter.api.Test)

Aggregations

FilterExpressionPath (com.yahoo.elide.annotation.FilterExpressionPath)1 Book (example.Book)1 Test (org.junit.jupiter.api.Test)1