class ProjectMainActions implements ProjectMainActionsView.Presenter,
                                           IsElement {

    @Override
    public void onRunTest() {
        final Optional<Module> activeModule = workspaceProjectContext.getActiveModule();

        if (activeModule.isPresent()) {
            view.showBusyIndicator(ts.getTranslation(LibraryConstants.Testing));

            placeManager.goTo(new DefaultPlaceRequest("org.kie.guvnor.TestResults"));

            testRunnerService.call(
                    (RemoteCallback<Void>) response -> view.hideBusyIndicator()
            ).runAllTests(user.getIdentifier(),
                          activeModule.get().getRootPath());
        }
    }

    @Inject public  ProjectMainActions(final BuildExecutor buildExecutor,
                              final ProjectMainActionsView view,
                              final Caller<TestRunnerService> testRunnerService,
                              final WorkspaceProjectContext workspaceProjectContext,
                              final PlaceManager placeManager,
                              final TranslationService ts,
                              final User user);

}