Github user aledsage commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/412#discussion_r87560722
--- Diff:
core/src/test/java/org/apache/brooklyn/core/entity/AbstractApplicationLegacyTest.java
---
@@ -92,8 +94,11 @@ public void
testStartAndStopUnmanagedAppAutomanagesTheAppAndChildren() throws Ex
assertTrue(Entities.isManaged(app2));
assertTrue(Entities.isManaged(child));
assertEquals(child.getCallHistory(), ImmutableList.of("start"));
- assertEquals(mgmt.getEntityManager().getEntity(app2.getId()),
app2);
--- End diff --
Wow, that's a really interesting error (that it used to pass because of
`AbstractEntity.equals` matching on `o == selfProxy`, because `this.selfProxy`
was null!). Well found and fixed!
---
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.
---