mirror of https://github.com/apache/maven.git
[MNG-7156][MNG-7285] Fix typo in test
This commit is contained in:
parent
10a72f30f7
commit
4ff27db4f9
|
@ -122,16 +122,16 @@ public class ProjectBuilderTest
|
||||||
assertEquals( 1, mavenProject.getArtifacts().size() );
|
assertEquals( 1, mavenProject.getArtifacts().size() );
|
||||||
|
|
||||||
final MavenProject project = mavenProject;
|
final MavenProject project = mavenProject;
|
||||||
final AtomicInteger artifactsResultInAnotherThead = new AtomicInteger();
|
final AtomicInteger artifactsResultInAnotherThread = new AtomicInteger();
|
||||||
Thread t = new Thread(new Runnable() {
|
Thread t = new Thread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
artifactsResultInAnotherThead.set(project.getArtifacts().size());
|
artifactsResultInAnotherThread.set(project.getArtifacts().size());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
t.start();
|
t.start();
|
||||||
t.join();
|
t.join();
|
||||||
assertEquals( project.getArtifacts().size(), artifactsResultInAnotherThead.get() );
|
assertEquals( project.getArtifacts().size(), artifactsResultInAnotherThread.get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testDontResolveDependencies()
|
public void testDontResolveDependencies()
|
||||||
|
|
Loading…
Reference in New Issue