Make TemplateBuilderImplTest less brittle.

This commit is contained in:
Adrian Cole 2014-10-27 09:26:23 -07:00 committed by Adrian Cole
parent ea5a0bcf4b
commit 2a43b3a90d
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ public class TemplateBuilderImplTest {
fail("Expected NoSuchElementException"); fail("Expected NoSuchElementException");
} catch (NoSuchElementException e) { } catch (NoSuchElementException e) {
// make sure big data is not in the exception message // make sure big data is not in the exception message
assertEquals(e.getMessage(), "no image matched predicate: Predicates.and(nullEqualToIsParentOrIsGrandparentOfCurrentLocation(),imageDescription(notDescription))"); assertTrue(e.getMessage().length() < 1024);
} }
verify(defaultOptions, optionsProvider, templateBuilderProvider, getImageStrategy); verify(defaultOptions, optionsProvider, templateBuilderProvider, getImageStrategy);