Github user aledsage commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/309#discussion_r20469217
--- Diff: core/src/test/java/brooklyn/entity/rebind/RebindTestFixture.java
---
@@ -72,6 +64,7 @@
protected T newApp;
protected ManagementContext newManagementContext;
--- End diff --
Not sure I follow. `newManagementContext ` gets terminated in `tearDown()`.
Until my changes, the `newManagementContext` would only get set in some of
the methods but not others (which definitely felt like a bug).
Now everything delegates to a single rebind() implementation, which does
set `new ManagementContext` - so it should always happen.
Setting it in the sub-class, or declaring your own locally-scoped
variable/field, will still work but should be unnecessary.
---
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.
---