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);
}
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;
}
Aggregations