use of org.eclipse.reddeer.requirements.autobuilding.AutoBuildingRequirement 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();
}
}
Aggregations