Skip to content

Commit

Permalink
Fix ProcessesPanelPresenterTest. Clean up rubbish. (#4237)
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
  • Loading branch information
AndrienkoAleksandr committed Feb 27, 2017
1 parent 7e850dd commit d76ba5c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 26 deletions.
5 changes: 0 additions & 5 deletions agents/exec/src/term/build/addons/attach/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions agents/exec/src/term/build/addons/fit/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions agents/exec/src/term/build/addons/fullscreen/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions agents/exec/src/term/build/addons/linkify/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions agents/exec/src/term/build/addons/terminado/package.json

This file was deleted.

Expand Up @@ -12,6 +12,7 @@

import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwtmockito.GwtMockitoTestRunner;
import com.google.web.bindery.event.shared.EventBus;

Expand All @@ -34,7 +35,6 @@
import org.eclipse.che.ide.api.machine.ExecAgentCommandManager;
import org.eclipse.che.ide.api.machine.MachineEntity;
import org.eclipse.che.ide.api.machine.MachineManager;
import org.eclipse.che.ide.api.machine.MachineServiceClient;
import org.eclipse.che.ide.api.machine.events.MachineStateEvent;
import org.eclipse.che.ide.api.machine.events.WsAgentStateEvent;
import org.eclipse.che.ide.api.macro.MacroProcessor;
Expand Down Expand Up @@ -144,6 +144,8 @@ public class ProcessesPanelPresenterTest {
private Promise<List<MachineProcessDto>> processesPromise;
@Mock
private Promise<List<GetProcessesResponseDto>> promise;
@Mock
private Widget widget;

@Captor
private ArgumentCaptor<AcceptsOneWidget> acceptsOneWidgetCaptor;
Expand Down Expand Up @@ -339,6 +341,7 @@ public void shouldHideStopProcessButtonAtAddingTerminal() throws Exception {
when(terminalFactory.create(machine, presenter)).thenReturn(terminal);
IsWidget terminalWidget = mock(IsWidget.class);
when(terminal.getView()).thenReturn(terminalWidget);
when(terminalWidget.asWidget()).thenReturn(widget);

presenter.addCommandOutput(MACHINE_ID, outputConsole);
presenter.onAddTerminal(MACHINE_ID, presenter);
Expand Down Expand Up @@ -408,6 +411,7 @@ public void shouldAddTerminal() throws Exception {
when(terminalFactory.create(machine, presenter)).thenReturn(terminal);
IsWidget terminalWidget = mock(IsWidget.class);
when(terminal.getView()).thenReturn(terminalWidget);
when(terminalWidget.asWidget()).thenReturn(widget);

presenter.onAddTerminal(MACHINE_ID, presenter);

Expand Down

0 comments on commit d76ba5c

Please sign in to comment.