Skip to content

Commit 7fdab4a

Browse files
committed
DATAES-91 - fixed tests
1 parent dfa0823 commit 7fdab4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/springframework/data/elasticsearch/core/completion/ElasticsearchTemplateCompletionTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import java.util.List;
3232

3333
import static org.hamcrest.MatcherAssert.assertThat;
34-
import static org.hamcrest.Matchers.is;
34+
import static org.hamcrest.Matchers.*;
3535
import static org.junit.Assert.assertEquals;
3636

3737
/**
@@ -109,7 +109,7 @@ public void shouldFindSuggestionsForGivenCriteriaQueryUsingCompletionObjectEntit
109109

110110
//then
111111
assertThat(options.size(), is(2));
112-
assertEquals("Marchand", options.get(0).getText().string());
112+
assertThat(options.get(0).getText().string(), isOneOf("Marchand","Mohsin Husen"));
113113
}
114114

115115
@Test
@@ -127,6 +127,6 @@ public void shouldFindSuggestionsForGivenCriteriaQueryUsingloadAnnotatedCompleti
127127

128128
//then
129129
assertThat(options.size(), is(2));
130-
assertEquals("Marchand", options.get(0).getText().string());
130+
assertThat(options.get(0).getText().string(), isOneOf("Marchand","Mohsin Husen"));
131131
}
132132
}

0 commit comments

Comments
 (0)