o Fixed potential threading issues

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@953406 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-06-10 17:26:48 +00:00
parent 7be4a13465
commit e855cc456c
4 changed files with 11 additions and 7 deletions

View File

@ -26,6 +26,7 @@ import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Properties;
@ -52,7 +53,7 @@ public class MavenITmng4343MissingReleaseUpdatePolicyTest
private List requestedUris;
private boolean blockAccess;
private volatile boolean blockAccess;
public MavenITmng4343MissingReleaseUpdatePolicyTest()
{
@ -111,7 +112,7 @@ public class MavenITmng4343MissingReleaseUpdatePolicyTest
server.setHandler( repoHandler );
server.start();
requestedUris = new ArrayList();
requestedUris = Collections.synchronizedList( new ArrayList() );
}
protected void tearDown()

View File

@ -25,6 +25,7 @@ import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Properties;
@ -63,7 +64,7 @@ public class MavenITmng4348NoUnnecessaryRepositoryAccessTest
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
final List requestedUris = new ArrayList();
final List requestedUris = Collections.synchronizedList( new ArrayList() );
Handler repoHandler = new AbstractHandler()
{

View File

@ -25,6 +25,7 @@ import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Properties;
@ -64,7 +65,7 @@ public class MavenITmng4500NoUpdateOfTimestampedSnapshotsTest
String pomUri = "/repo/org/apache/maven/its/mng4500/dep/0.1-SNAPSHOT/dep-0.1-20091219.230823-1.pom";
String jarUri = "/repo/org/apache/maven/its/mng4500/dep/0.1-SNAPSHOT/dep-0.1-20091219.230823-1.jar";
final List requestedUris = new ArrayList();
final List requestedUris = Collections.synchronizedList( new ArrayList() );
AbstractHandler logHandler = new AbstractHandler()
{

View File

@ -26,6 +26,7 @@ import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Properties;
@ -64,7 +65,7 @@ public class MavenITmng4554PluginPrefixMappingUpdateTest
String metadataUri = "/repo-1/org/apache/maven/its/mng4554/maven-metadata.xml";
final List requestedUris = new ArrayList();
final List requestedUris = Collections.synchronizedList( new ArrayList() );
AbstractHandler logHandler = new AbstractHandler()
{
@ -141,7 +142,7 @@ public class MavenITmng4554PluginPrefixMappingUpdateTest
String metadataUri = "/repo-1/org/apache/maven/its/mng4554/maven-metadata.xml";
final List requestedUris = new ArrayList();
final List requestedUris = Collections.synchronizedList( new ArrayList() );
AbstractHandler logHandler = new AbstractHandler()
{
@ -221,7 +222,7 @@ public class MavenITmng4554PluginPrefixMappingUpdateTest
String metadataUri = "/repo-it/org/apache/maven/its/mng4554/maven-metadata.xml";
final List requestedUris = new ArrayList();
final List requestedUris = Collections.synchronizedList( new ArrayList() );
AbstractHandler logHandler = new AbstractHandler()
{