mirror of https://github.com/apache/jclouds.git
Make TemplateBuilderImplTest less brittle.
This commit is contained in:
parent
ea5a0bcf4b
commit
2a43b3a90d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue