mirror of https://github.com/apache/jclouds.git
Issue 871: corrected invalid toString message
This commit is contained in:
parent
6b4f36df7f
commit
41daa057d8
|
@ -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() + ")";
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue