mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
28 lines
483 B
Java
28 lines
483 B
Java
package io.ebean.util;
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
import java.util.Set;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import io.ebean.annotation.Formula;
|
|
|
|
public class TestAnnotationUtil {
|
|
|
|
@Formula(select = "x")
|
|
@Formula(select = "y")
|
|
private static class TestObject {
|
|
|
|
}
|
|
|
|
@Test
|
|
public void testRepeatableAnnotation() {
|
|
|
|
Set<Formula> list = AnnotationUtil.typeGetAll(TestObject.class, Formula.class);
|
|
assertThat(list).hasSize(2);
|
|
|
|
}
|
|
|
|
}
|