Issue 871: corrected invalid toString message

This commit is contained in:
Adrian Cole 2012-03-15 13:59:32 -07:00
parent 5298951b91
commit e8d4fe1687
2 changed files with 2 additions and 2 deletions

View File

@ -51,6 +51,6 @@ public class LocationPredicate implements Predicate<ComputeMetadata> {
@Override @Override
public String toString() { public String toString() {
return locationSupplier.get() == null ? "anyLocation()" : "locationEqualsOrChildOf(" + locationSupplier.get().getId() + ")"; return locationSupplier.get() == null ? "anyLocation()" : "locationEqualsParentOrGrandparentOf(" + locationSupplier.get().getId() + ")";
} }
} }

View File

@ -680,7 +680,7 @@ public class TemplateBuilderImplTest {
assert false; assert false;
} 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: And(locationEqualsOrChildOf(us-east-1),imageDescription(description))"); assertEquals(e.getMessage(), "no image matched predicate: And(locationEqualsParentOrGrandparentOf(us-east-1),imageDescription(description))");
} }
verify(defaultOptions); verify(defaultOptions);