mirror of
https://github.com/google/nomulus.git
synced 2025-07-08 20:23:24 +02:00
Add more Datastore/Sql Entity annotations (#826)
* Add more Datastore/Sql Entity annotations * Move comments up a line
This commit is contained in:
parent
95f6ccc657
commit
0f09a4a0ab
11 changed files with 47 additions and 22 deletions
|
@ -18,6 +18,7 @@ import static com.google.common.collect.ImmutableSet.toImmutableSet;
|
|||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.googlecode.objectify.annotation.Embed;
|
||||
import io.github.classgraph.ClassGraph;
|
||||
import io.github.classgraph.ClassInfo;
|
||||
import io.github.classgraph.ClassInfoList;
|
||||
|
@ -72,6 +73,7 @@ public class EntityTest {
|
|||
.filter(ClassInfo::isStandardClass)
|
||||
.map(ClassInfo::loadClass)
|
||||
.filter(clazz -> !clazz.isAnnotationPresent(EntityForTesting.class))
|
||||
.filter(clazz -> !clazz.isAnnotationPresent(Embed.class))
|
||||
.map(Class::getName)
|
||||
.collect(toImmutableSet());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue