Search in sources :

Example 6 with AcceptsOneWidget

use of com.google.gwt.user.client.ui.AcceptsOneWidget in project che by eclipse.

the class MavenPagePresenterTest method testGo.

@Test
public void testGo() throws Exception {
    AcceptsOneWidget container = Mockito.mock(AcceptsOneWidget.class);
    presenter.go(container);
    verify(container).setWidget(eq(view));
    verify(view).setWorkingDirectory(eq(WORK_DIR));
    verify(view).setArguments(eq(ARGUMENTS));
}
Also used : AcceptsOneWidget(com.google.gwt.user.client.ui.AcceptsOneWidget) Test(org.junit.Test)

Example 7 with AcceptsOneWidget

use of com.google.gwt.user.client.ui.AcceptsOneWidget in project che by eclipse.

the class SshCategoryPresenterTest method testGo.

@Test
public void testGo() throws Exception {
    AcceptsOneWidget container = Mockito.mock(AcceptsOneWidget.class);
    arbitraryCategoryPresenter.go(container);
    verify(container).setWidget(eq(sshView));
}
Also used : AcceptsOneWidget(com.google.gwt.user.client.ui.AcceptsOneWidget) Test(org.junit.Test)

Example 8 with AcceptsOneWidget

use of com.google.gwt.user.client.ui.AcceptsOneWidget in project che by eclipse.

the class ProcessesPanelPresenterTest method testGo.

@Test
public void testGo() throws Exception {
    AcceptsOneWidget container = mock(AcceptsOneWidget.class);
    presenter.go(container);
    verify(container).setWidget(eq(view));
}
Also used : AcceptsOneWidget(com.google.gwt.user.client.ui.AcceptsOneWidget) Test(org.junit.Test)

Example 9 with AcceptsOneWidget

use of com.google.gwt.user.client.ui.AcceptsOneWidget in project che by eclipse.

the class ZendDbgConfigurationPagePresenterTest method testGo.

@Test
public void testGo() throws Exception {
    AcceptsOneWidget container = Mockito.mock(AcceptsOneWidget.class);
    pagePresenter.go(container);
    verify(container).setWidget(eq(pageView));
    verify(configuration, times(3)).getConnectionProperties();
}
Also used : AcceptsOneWidget(com.google.gwt.user.client.ui.AcceptsOneWidget) Test(org.junit.Test)

Example 10 with AcceptsOneWidget

use of com.google.gwt.user.client.ui.AcceptsOneWidget in project che by eclipse.

the class JavaDebugConfigurationPagePresenterTest method testGo.

@Test
public void testGo() throws Exception {
    AcceptsOneWidget container = Mockito.mock(AcceptsOneWidget.class);
    pagePresenter.go(container);
    verify(container).setWidget(eq(pageView));
    verify(configuration, times(2)).getHost();
    verify(configuration, times(2)).getPort();
    verify(pageView).setHost(eq(HOST));
    verify(pageView).setPort(eq(PORT));
    verify(pageView).setDevHost(eq(TRUE));
}
Also used : AcceptsOneWidget(com.google.gwt.user.client.ui.AcceptsOneWidget) Test(org.testng.annotations.Test)

Aggregations

AcceptsOneWidget (com.google.gwt.user.client.ui.AcceptsOneWidget)27 Test (org.junit.Test)23 IsWidget (com.google.gwt.user.client.ui.IsWidget)3 ProjectImporterDescriptor (org.eclipse.che.api.project.shared.dto.ProjectImporterDescriptor)2 ActivePartChangedEvent (org.eclipse.che.ide.api.event.ActivePartChangedEvent)2 SelectionChangedHandler (org.eclipse.che.ide.api.event.SelectionChangedHandler)2 AbstractPartPresenter (org.eclipse.che.ide.api.parts.AbstractPartPresenter)2 Selection (org.eclipse.che.ide.api.selection.Selection)2 ArrayList (java.util.ArrayList)1 Breakpoint (org.eclipse.che.ide.api.debug.Breakpoint)1 ProcessTreeNode (org.eclipse.che.ide.extension.machine.client.processes.ProcessTreeNode)1 BaseTest (org.eclipse.che.plugin.debugger.ide.BaseTest)1 Matchers.anyString (org.mockito.Matchers.anyString)1 Mockito.anyString (org.mockito.Mockito.anyString)1 Test (org.testng.annotations.Test)1