use of org.eclipse.reddeer.eclipse.jdt.ui.packageview.PackageExplorerPart in project linuxtools by eclipse.
the class ComposeTest method runDockerCompose.
private void runDockerCompose(String project, String projectFile) {
PackageExplorerPart pe = new PackageExplorerPart();
pe.open();
pe.getProject(project).getProjectItem(projectFile).select();
@SuppressWarnings("unchecked") ContextMenuItem contextMenu = new ContextMenuItem(new WithTextMatcher("Run As"), new RegexMatcher(".*Docker Compose"));
contextMenu.select();
new OkButton().click();
try {
new DefaultShell("Docker Compose");
new PushButton("Apply and Close").click();
fail("Docker Compose has not been found! Is it installed and the path is correct?");
} catch (CoreLayerException ex) {
}
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
new WaitWhile(new ConsoleHasNoChange());
}
use of org.eclipse.reddeer.eclipse.jdt.ui.packageview.PackageExplorerPart in project jbosstools-hibernate by jbosstools.
the class CodeGenerationConfigurationTest method checkGeneratedEntities.
private void checkGeneratedEntities(String src) {
PackageExplorerPart pe = new PackageExplorerPart();
pe.open();
try {
new WaitUntil(new EntityIsGenerated(prj, src, "org.gen", "Actor.java"));
pe.getProject(prj).getProjectItem(src, "org.gen", "Actor.java").open();
} catch (RedDeerException e) {
fail("Entities not generated, possible cause https://issues.jboss.org/browse/JBIDE-19217");
}
new DefaultEditor("Actor.java");
}
use of org.eclipse.reddeer.eclipse.jdt.ui.packageview.PackageExplorerPart in project jbosstools-hibernate by jbosstools.
the class MappingDiagramTest method checkMappingDiagram.
private void checkMappingDiagram() {
AutoBuilding ab = new AutoBuilding() {
@Override
public Class<? extends Annotation> annotationType() {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean value() {
return false;
}
@Override
public boolean cleanup() {
// TODO Auto-generated method stub
return true;
}
};
AutoBuildingRequirement abr = new AutoBuildingRequirement();
abr.setDeclaration(ab);
openMappingDiagram();
try {
new DefaultEditor(prj + ": Actor and 15 others");
} catch (RedDeerException e) {
// workaroud due to buggy auto building
abr.fulfill();
PackageExplorerPart pe = new PackageExplorerPart();
pe.getProject(prj).select();
new ShellMenuItem("Project", "Build Project").select();
new WaitWhile(new JobIsRunning());
openMappingDiagram();
new DefaultEditor(prj + ": Actor and 15 others");
} finally {
abr.cleanUp();
}
}
use of org.eclipse.reddeer.eclipse.jdt.ui.packageview.PackageExplorerPart in project jbosstools-openshift by jbosstools.
the class DebuggingEAPAppTest method rebuildProject.
private static void rebuildProject() {
PackageExplorerPart pexplorer = new PackageExplorerPart();
pexplorer.open();
pexplorer.getProject(PROJECT_NAME).select();
new ContextMenuItem("Maven", "Update Project...").select();
new WaitUntil(new ShellIsAvailable("Update Maven Project"), TimePeriod.LONG);
new CheckBox("Force Update of Snapshots/Releases").toggle(true);
new PushButton("OK").click();
new WaitWhile(new ShellIsAvailable("Update Maven Project"), TimePeriod.DEFAULT);
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
use of org.eclipse.reddeer.eclipse.jdt.ui.packageview.PackageExplorerPart in project jbosstools-hibernate by jbosstools.
the class JPAEntityGenerationTest method testEntityGeneration.
private void testEntityGeneration(boolean useHibernateConsole) {
prepare();
DatabaseConfiguration cfg = dbRequirement.getConfiguration();
EntityGenerationFactory.generateJPAEntities(cfg, prj, "org.gen", hbVersion, useHibernateConsole);
PackageExplorerPart pe = new PackageExplorerPart();
pe.open();
try {
new WaitUntil(new EntityIsGenerated(prj, "src/main/java", "org.gen", "Actor.java"));
pe.getProject(prj).getProjectItem("src/main/java", "org.gen", "Actor.java").open();
} catch (RedDeerException e) {
e.printStackTrace();
fail("Entities not generated, possible cause https://issues.jboss.org/browse/JBIDE-19175");
}
new DefaultEditor("Actor.java");
}
Aggregations