Github user bostko commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/195#discussion_r67141981
--- Diff:
core/src/test/java/org/apache/brooklyn/core/mgmt/internal/TestEntityWithEffectors.java
---
@@ -21,15 +21,77 @@
import org.apache.brooklyn.api.entity.ImplementedBy;
import org.apache.brooklyn.core.annotation.Effector;
import org.apache.brooklyn.core.annotation.EffectorParam;
+import org.apache.brooklyn.core.effector.MethodEffector;
import org.apache.brooklyn.core.test.entity.TestEntity;
+/**
+ * Entity for testing that secret effector parameters are:
+ * <ul>
+ * <li>excluded from the activities view
+ * <li>not logged
+ * <li>masked out in the UI
+ * </ul>
+ * Of those, only the first is unit-tested.
+ *
+ * To test manually...
+ *
+ * Configure logback to log everything at trace:
+ * <pre>
+ * {@code
+ * <configuration>
+ * <include resource="logback-main.xml"/>
+ * <logger name="org.apache.brooklyn" level="TRACE"/>
+ * <logger name="brooklyn" level="TRACE"/>
+ * </configuration>
+ * }
+ * </pre>
+ *
+ * Run Brooklyn with the above log configuration file:
+ * <pre>
+ * {@code
+ * export JAVA_OPTS="-Xms256m -Xmx1g -XX:MaxPermSize=256m
-Dlogback.configurationFile=/path/to/logback-trace.xml"
+ * ./bin/brooklyn launch --persist auto --persistenceDir
/path/to/persistedState
+ * }
+ * </pre>
+ *
+ * Deploy the blueprint below:
+ * <pre>
+ * {@code
+ * services:
+ * - type: org.apache.brooklyn.core.mgmt.internal.TestEntityWithEffectors
--- End diff --
I had to add
```xml
<dependency>
<groupId>org.apache.brooklyn</groupId>
<artifactId>brooklyn-core</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
</dependency>
```
In my maven file to use this entity.
@aledsage do you think we should this note here?
---
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.
---