From 8ea87a4acbde1f9723f248d06c33c70677c99152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Fri, 7 Apr 2017 19:07:02 +0200 Subject: [PATCH] HSEARCH-2001 Add missing @SortableField annotations in tests --- .../java/org/hibernate/search/test/sorting/SortingTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/src/test/java/org/hibernate/search/test/sorting/SortingTest.java b/engine/src/test/java/org/hibernate/search/test/sorting/SortingTest.java index b83a6fc01f0..e5e686305e2 100644 --- a/engine/src/test/java/org/hibernate/search/test/sorting/SortingTest.java +++ b/engine/src/test/java/org/hibernate/search/test/sorting/SortingTest.java @@ -30,6 +30,7 @@ import org.hibernate.search.annotations.Fields; import org.hibernate.search.annotations.Indexed; import org.hibernate.search.annotations.IndexedEmbedded; +import org.hibernate.search.annotations.SortableField; import org.hibernate.search.annotations.SortableFields; import org.hibernate.search.annotations.Store; import org.hibernate.search.annotations.TokenFilterDef; @@ -415,7 +416,8 @@ private class Person { @SortableFields({ @org.hibernate.search.annotations.SortableField(forField = "ageForStringSorting"), - @org.hibernate.search.annotations.SortableField(forField = "ageForIntSorting") + @org.hibernate.search.annotations.SortableField(forField = "ageForIntSorting"), + @org.hibernate.search.annotations.SortableField(forField = "ageForNullChecks") }) @Fields({ @Field(name = "ageForStringSorting", store = Store.YES, analyze = Analyze.NO, bridge = @FieldBridge(impl = IntegerBridge.class) ), @@ -443,6 +445,7 @@ private class Person { final List friends; @Field + @SortableField @IndexedEmbedded//TODO improve error message when this is missing Integer[] array;