DATACMNS-867 - First draft.
This commit is contained in:
6
src/test/java/org/springframework/data/annotation/TypeAliasUnitTests.java
Normal file → Executable file
6
src/test/java/org/springframework/data/annotation/TypeAliasUnitTests.java
Normal file → Executable file
@@ -15,8 +15,7 @@
|
||||
*/
|
||||
package org.springframework.data.annotation;
|
||||
|
||||
import static org.hamcrest.Matchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
@@ -37,8 +36,7 @@ public class TypeAliasUnitTests {
|
||||
AnnotatedTypeScanner scanner = new AnnotatedTypeScanner(Persistent.class);
|
||||
Set<Class<?>> types = scanner.findTypes(getClass().getPackage().getName());
|
||||
|
||||
assertThat(types, hasSize(2));
|
||||
assertThat(types, hasItems(SampleType.class, TypeAlias.class));
|
||||
assertThat(types).containsExactlyInAnyOrder(SampleType.class, TypeAlias.class);
|
||||
}
|
||||
|
||||
@TypeAlias(value = "foo")
|
||||
|
||||
Reference in New Issue
Block a user