public void acquire() {
}
};
BuildManager buildManager = new BuildManager((Workspace) ResourcesPlugin.getWorkspace(), workspaceLock);
IBuildConfiguration buildConfiguration = new IBuildConfiguration() {
public Object getAdapter(final Class adapter) {
return null;
}
public IProject getProject() {
return project;
}
public String getName() {
return "QWickieBuilder";
}
};
buildManager.build(buildConfiguration, 0, "QWickieBuilder", new HashMap<String, String>(), null);
try {
// mark the error in builder package BuilderPage
final IMarker[] markers = project.findMarkers(QWickieBuilder.MARKER_TYPE, false, IResource.DEPTH_INFINITE);
assertEquals(2, markers.length);