Search in sources :

Example 26 with AcceptsOneWidget

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

the class DevelopmentCategoryPresenterTest method testGo.

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

Example 27 with AcceptsOneWidget

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

the class DockerCategoryPresenterTest method testGo.

@Test
public void testGo() throws Exception {
    AcceptsOneWidget container = Mockito.mock(AcceptsOneWidget.class);
    arbitraryCategoryPresenter.go(container);
    verify(container).setWidget(eq(dockerView));
}
Also used : AcceptsOneWidget(com.google.gwt.user.client.ui.AcceptsOneWidget) Test(org.junit.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