You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by sj...@apache.org on 2014/12/09 11:45:33 UTC

[4/5] incubator-brooklyn git commit: EntityTestUtils: improve error messages

EntityTestUtils: improve error messages


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/131c5188
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/131c5188
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/131c5188

Branch: refs/heads/master
Commit: 131c518832b47a6661195ac524cc9a6b356f00fc
Parents: a46391e
Author: Aled Sage <al...@gmail.com>
Authored: Tue Nov 18 22:05:49 2014 +0000
Committer: Sam Corbett <sa...@cloudsoftcorp.com>
Committed: Tue Dec 9 10:38:23 2014 +0000

----------------------------------------------------------------------
 .../src/main/java/brooklyn/test/EntityTestUtils.java             | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/131c5188/usage/test-support/src/main/java/brooklyn/test/EntityTestUtils.java
----------------------------------------------------------------------
diff --git a/usage/test-support/src/main/java/brooklyn/test/EntityTestUtils.java b/usage/test-support/src/main/java/brooklyn/test/EntityTestUtils.java
index 5332818..088f29c 100644
--- a/usage/test-support/src/main/java/brooklyn/test/EntityTestUtils.java
+++ b/usage/test-support/src/main/java/brooklyn/test/EntityTestUtils.java
@@ -51,11 +51,11 @@ public class EntityTestUtils {
     // and deprecate methods in TestUtils until deleted).
     
     public static <T> void assertAttributeEquals(Entity entity, AttributeSensor<T> attribute, T expected) {
-        assertEquals(entity.getAttribute(attribute), expected);
+        assertEquals(entity.getAttribute(attribute), expected, "entity="+entity+"; attribute="+attribute);
     }
     
     public static <T> void assertConfigEquals(Entity entity, ConfigKey<T> configKey, T expected) {
-        assertEquals(entity.getConfig(configKey), expected);
+        assertEquals(entity.getConfig(configKey), expected, "entity="+entity+"; configKey="+configKey);
     }
     
     public static <T> void assertAttributeEqualsEventually(final Entity entity, final AttributeSensor<T> attribute, final T expected) {