Search in sources :

Example 1 with DockerImageHierarchyTab

use of org.eclipse.linuxtools.docker.reddeer.ui.DockerImageHierarchyTab in project linuxtools by eclipse.

the class HierarchyViewTest method testHierarchyView.

@Test
public void testHierarchyView() {
    DockerImagesTab imageTab = openDockerImagesTab();
    buildImage(IMAGE_TEST_BUILD, DOCKERFILE_FOLDER, imageTab);
    if (mockitoIsUsed()) {
        buildImage();
    }
    DockerImageHierarchyTab hierarchyTab = openDockerImageHierarchyTab();
    List<TreeItem> treeItems = hierarchyTab.getTreeItems();
    compareTextInFirstNode(treeItems, "alpine:3.3");
    List<TreeItem> treeItems2 = treeItems.get(0).getItems();
    compareTextInFirstNode(treeItems2, IMAGE_TEST_BUILD + NAME_TAG_SEPARATOR + IMAGE_TAG_LATEST);
}
Also used : TreeItem(org.eclipse.reddeer.swt.api.TreeItem) DockerImagesTab(org.eclipse.linuxtools.docker.reddeer.ui.DockerImagesTab) DockerImageHierarchyTab(org.eclipse.linuxtools.docker.reddeer.ui.DockerImageHierarchyTab) Test(org.junit.Test)

Example 2 with DockerImageHierarchyTab

use of org.eclipse.linuxtools.docker.reddeer.ui.DockerImageHierarchyTab in project linuxtools by eclipse.

the class HierarchyViewTest method openDockerImageHierarchyTab.

private DockerImageHierarchyTab openDockerImageHierarchyTab() {
    getConnection().getImage(IMAGE_TEST_BUILD).openImageHierarchy();
    new WaitWhile(new ShellIsAvailable("Docker Image Hierarchy"));
    DockerImageHierarchyTab hierarchyTab = new DockerImageHierarchyTab();
    hierarchyTab.open();
    return hierarchyTab;
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) DockerImageHierarchyTab(org.eclipse.linuxtools.docker.reddeer.ui.DockerImageHierarchyTab)

Aggregations

DockerImageHierarchyTab (org.eclipse.linuxtools.docker.reddeer.ui.DockerImageHierarchyTab)2 DockerImagesTab (org.eclipse.linuxtools.docker.reddeer.ui.DockerImagesTab)1 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 TreeItem (org.eclipse.reddeer.swt.api.TreeItem)1 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)1 Test (org.junit.Test)1