IPackageFragment pack = testProject.createPackage("paket1") ;
IType type= testProject.createType(pack, "AClass.java", "public class AClass {public void m(){}}");
IType testClass = testProject.createType(pack, "AClassBehaviour.java", "public class AClassBehaviour extends org.jbehave.core.mock.UsingMatchers{public void shouldAddUp(){ensureThat(2,eq(1+1));}}");
}
};
IWorkspace workspace = ResourcesPlugin.getWorkspace();
workspace.run(runnable,null);
Platform.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD, null);
IMarker[] markers = workspace.getRoot().findMarkers(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_INFINITE);
assertEquals(0, markers.length);
ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType configType = lm.getLaunchConfigurationType(JBehaveLaunchConfiguration.ID_JBEHAVE_APPLICATION);
ConfigurationState state=new ConfigurationState();