Source:
<code>protected void setUp() throws Exception { System.out.println("TEST-SETUP: " + getName()); super.setUp(); workspace = ResourcesPlugin.getWorkspace(); <START> setAutobuilding(true); <END> Hashtable<String, String> options = JavaCore.getOptions(); options.put(JavaCore.CORE_JAVA_BUILD_RESOURCE_COPY_FILTER, ".svn/"); JavaCore.setOptions(options); InstanceScope.INSTANCE.getNode(LaunchingPlugin.ID_PLUGIN).put( JavaRuntime.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE, JavaCore.IGNORE); projectRefreshJob = MavenPluginActivator.getDefault().getProjectManagerRefreshJob(); projectRefreshJob.sleep(); downloadSourcesJob = ((BuildPathManager) MavenJdtPlugin.getDefault().getBuildpathManager()).getDownloadSourcesJob(); downloadSourcesJob.sleep(); mavenConfiguration = MavenPlugin.getMavenConfiguration(); oldUserSettingsFile = mavenConfiguration.getUserSettingsFile(); File settings = new File("settings.xml").getCanonicalFile(); if(settings.canRead()) { String userSettingsFile = settings.getAbsolutePath(); System.out.println("Setting user settings file: " + userSettingsFile); mavenConfiguration.setUserSettingsFile(userSettingsFile); } ArtifactRepository localRepository = MavenPlugin.getMaven().getLocalRepository(); if(localRepository != null) { repo = new File(localRepository.getBasedir()); } else { fail("Cannot determine local repository path"); } LifecycleMappingFactory.setUseDefaultLifecycleMappingMetadataSource(true); LifecycleMappingFactory.setDefaultLifecycleMappingMetadataSource(null); WorkspaceHelpers.cleanWorkspace(); FilexWagon.setRequestFailPattern(null); FilexWagon.setRequestFilterPattern(null, true); }</code><technical_language>I this. I is important interference tests background jobs possible. Turned this default tests unreliable I afraid</technical_language>

Target:
protected void setUp() throws Exception { System.out.println("TEST-SETUP: " + getName()); super.setUp(); workspace = ResourcesPlugin.getWorkspace(); setAutoBuilding(false); Hashtable<String, String> options = JavaCore.getOptions(); options.put(JavaCore.CORE_JAVA_BUILD_RESOURCE_COPY_FILTER, ".svn/"); JavaCore.setOptions(options); projectRefreshJob = MavenPluginActivator.getDefault().getProjectManagerRefreshJob(); projectRefreshJob.sleep(); downloadSourcesJob = ((BuildPathManager) MavenJdtPlugin.getDefault().getBuildpathManager()).getDownloadSourcesJob(); downloadSourcesJob.sleep(); mavenConfiguration = MavenPlugin.getMavenConfiguration(); oldUserSettingsFile = mavenConfiguration.getUserSettingsFile(); File settings = new File("settings.xml").getCanonicalFile(); if(settings.canRead()) { String userSettingsFile = settings.getAbsolutePath(); System.out.println("Setting user settings file: " + userSettingsFile); mavenConfiguration.setUserSettingsFile(userSettingsFile); } ArtifactRepository localRepository = MavenPlugin.getMaven().getLocalRepository(); if(localRepository != null) { repo = new File(localRepository.getBasedir()); } else { fail("Cannot determine local repository path"); } LifecycleMappingFactory.setUseDefaultLifecycleMappingMetadataSource(true); LifecycleMappingFactory.setDefaultLifecycleMappingMetadataSource(null); WorkspaceHelpers.cleanWorkspace(); FilexWagon.setRequestFailPattern(null); FilexWagon.setRequestFilterPattern(null, true); }