DATAES-91 - fixed tests

This commit is contained in:
Artur Konczak 2014-11-13 16:23:24 +00:00
parent dfa0823c9a
commit 7fdab4aa5c

View File

@ -31,7 +31,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
/** /**
@ -109,7 +109,7 @@ public class ElasticsearchTemplateCompletionTests {
//then //then
assertThat(options.size(), is(2)); assertThat(options.size(), is(2));
assertEquals("Marchand", options.get(0).getText().string()); assertThat(options.get(0).getText().string(), isOneOf("Marchand","Mohsin Husen"));
} }
@Test @Test
@ -127,6 +127,6 @@ public class ElasticsearchTemplateCompletionTests {
//then //then
assertThat(options.size(), is(2)); assertThat(options.size(), is(2));
assertEquals("Marchand", options.get(0).getText().string()); assertThat(options.get(0).getText().string(), isOneOf("Marchand","Mohsin Husen"));
} }
} }