Github user aledsage commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/287#discussion_r19663972
--- Diff:
core/src/test/java/brooklyn/entity/basic/DependentConfigurationTest.java ---
@@ -255,6 +255,21 @@ public String call() {
}
@Test
+ public void testAttributeWhenReadyRunNowWithoutPostProcess() throws
Exception {
+ Task<String> t = submit(new Callable<String>() {
+ @Override
+ public String call() throws Exception {
+ return DependentConfiguration.builder()
+ .attributeWhenReady(entity, TestEntity.NAME)
+ .runNow();
+ }
+ });
+ entity.setAttribute(TestEntity.NAME, "myentity");
+ assertDoneEventually(t);
--- End diff --
For future reference , could use `assertEquals(assertDoneEventually(t),
"myentity")`.
But your code is absolutely fine as well.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---