Issue 871: corrected invalid toString message

This commit is contained in:
Adrian Cole 2012-03-15 13:59:32 -07:00
parent 6b4f36df7f
commit 41daa057d8
2 changed files with 2 additions and 2 deletions

View File

@ -51,6 +51,6 @@ public class LocationPredicate implements Predicate<ComputeMetadata> {
@Override
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;
} catch (NoSuchElementException e) {
// 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);