Repository: brooklyn-server Updated Branches: refs/heads/master a0f884059 -> afe274fcb
use new maybe assertions Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/0d77dbc1 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/0d77dbc1 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/0d77dbc1 Branch: refs/heads/master Commit: 0d77dbc17235c9bfb833467fcb158ee3a69843eb Parents: 2e6f11f Author: Alex Heneveld <[email protected]> Authored: Mon Feb 20 14:39:06 2017 +0000 Committer: Alex Heneveld <[email protected]> Committed: Mon Feb 20 14:40:22 2017 +0000 ---------------------------------------------------------------------- .../org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/0d77dbc1/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java ---------------------------------------------------------------------- diff --git a/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java b/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java index 1686f55..e1f1708 100644 --- a/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java +++ b/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java @@ -372,10 +372,10 @@ public class ConfigYamlTest extends AbstractYamlTest { final TestEntity entity = (TestEntity) Iterables.getOnlyElement(app.getChildren()); // Attribute not yet set; non-blocking will return promptly without the value - assertTrue(entity.config().getNonBlocking(TestEntity.CONF_NAME).isAbsent()); - assertTrue(entity.config().getNonBlocking(TestEntity.CONF_MAP_THING).isAbsent()); - assertTrue(entity.config().getNonBlocking(TestEntity.CONF_LIST_THING).isAbsent()); - assertTrue(entity.config().getNonBlocking(TestEntity.CONF_SET_THING).isAbsent()); + Asserts.assertNotPresent(entity.config().getNonBlocking(TestEntity.CONF_NAME)); + Asserts.assertNotPresent(entity.config().getNonBlocking(TestEntity.CONF_MAP_THING)); + Asserts.assertNotPresent(entity.config().getNonBlocking(TestEntity.CONF_LIST_THING)); + Asserts.assertNotPresent(entity.config().getNonBlocking(TestEntity.CONF_SET_THING)); // Now set the attribute: get will return once that has happened executor.submit(new Callable<Object>() {
