DATACMNS-867 - First draft.

This commit is contained in:
Oliver Gierke
2016-11-14 20:10:22 +01:00
parent 1b17271915
commit cc63e5b7a4
278 changed files with 4737 additions and 5714 deletions

View 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")