[TEST] use toString rather than getDetailedMessage()

This commit is contained in:
Simon Willnauer 2015-04-24 10:09:24 +02:00
parent dd4a22bfed
commit 84549f334d
1 changed files with 2 additions and 2 deletions

View File

@ -581,8 +581,8 @@ public class IndexLookupTests extends ElasticsearchIntegrationTest {
} }
} catch (SearchPhaseExecutionException ex) { } catch (SearchPhaseExecutionException ex) {
assertThat( assertThat(
"got " + ex.getDetailedMessage(), "got " + ex.toString(),
ex.getDetailedMessage().indexOf("Cannot iterate twice! If you want to iterate more that once, add _CACHE explicitly."), ex.toString().indexOf("Cannot iterate twice! If you want to iterate more that once, add _CACHE explicitly."),
Matchers.greaterThan(-1)); Matchers.greaterThan(-1));
} }
} }