Closes #767 Adds BrooklynViewerLauncher (for tests)
As per the javadoc: ``` /** * A convenience for started the Brooklyn REST api and web-app in a test, so that one can visually * inspect the app that the test creates. This is intended as a read-only view (but it has the real * management context so one can perform actions through this UI). * * It expects to be configured with an existing {@link org.apache.brooklyn.api.mgmt.ManagementContext}. * * Various other configuration options (e.g. {@link #application(String)) will be ignored. * * An example of where this is very useful is when testing a blueprint where an effector hangs - * one can visually inspect the app, drilling into the activities view to see what it is doing * and why it is blocked. ``` Note that `AbstractBlueprintTest` used to do this with `BrooklynLauncher`, but that is broken - that launcher also tries to set the `managementPlaneId` on the management context, but it's already set so it throws an exception. My motivation for fixing + adding this is mostly for use in downstream projects. I want to run unit/integration tests that deploy + test some complicated blueprints. It's very useful to have this visualisation in such tests (particularly if it fails, and one places a breakpoint to see what activities have executed by that point). Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/c6944394 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/c6944394 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/c6944394 Branch: refs/heads/master Commit: c694439425b738bb0072601246e89cc649f8e250 Parents: 211e3dc 753c3c6 Author: Svetoslav Neykov <svetoslav.ney...@cloudsoftcorp.com> Authored: Fri Jul 21 14:42:58 2017 +0300 Committer: Svetoslav Neykov <svetoslav.ney...@cloudsoftcorp.com> Committed: Fri Jul 21 14:42:58 2017 +0300 ---------------------------------------------------------------------- .../brooklyn/launcher/common/BasicLauncher.java | 2 +- .../brooklyn/launcher/BrooklynLauncher.java | 1 + .../launcher/BrooklynViewerLauncher.java | 81 ++++++++++++++++++++ .../blueprints/AbstractBlueprintTest.java | 3 +- 4 files changed, 85 insertions(+), 2 deletions(-) ----------------------------------------------------------------------