CopyPresenter extends SubversionActionPresenter implements CopyView.ActionDelegate { @Override public void onNewNameChanged(String newName) { targetHolder.name = newName; validate(); } @Inject protected  CopyPresenter(AppContext appContext,
                            EventBus eventBus,
                            RawOutputPresenter console,
                            WorkspaceAgent workspaceAgent,
                            CopyView view,
                            NotificationManager notificationManager,
                            SubversionClientService service,
                            DtoUnmarshallerFactory dtoUnmarshallerFactory,
                            SubversionExtensionLocalizationConstants constants,
                            final ProjectExplorerPresenter projectExplorerPart); void showCopy(ResourceBasedNode<?> sourceNode); @Override void onCopyClicked(); @Override void onNewNameChanged(String newName); @Override void onCancelClicked(); @Override void onNodeSelected(ResourceBasedNode<?> destinationNode); @Override void onSourcePathChanged(); @Override void onTargetUrlChanged(); @Override void onSourceCheckBoxChanged(); @Override void onTargetCheckBoxChanged(); @Override void minimize(); @Override void activatePart(); @Override void onNodeExpanded(final ResourceBasedNode<?> node);  }
@Test public void testEmptyTargetMessageAlertShouldBeAppear() throws Exception { when(constants.copyEmptyTarget()).thenReturn("message"); presenter.onNewNameChanged("/foo"); verify(copyView).showErrorMarker("message"); }