[MNG-7156][MNG-7285] Fix typo in test

This commit is contained in:
Guillaume Nodet 2021-12-17 08:57:42 +01:00
parent 10a72f30f7
commit 4ff27db4f9
1 changed files with 3 additions and 3 deletions

View File

@ -122,16 +122,16 @@ public class ProjectBuilderTest
assertEquals( 1, mavenProject.getArtifacts().size() );
final MavenProject project = mavenProject;
final AtomicInteger artifactsResultInAnotherThead = new AtomicInteger();
final AtomicInteger artifactsResultInAnotherThread = new AtomicInteger();
Thread t = new Thread(new Runnable() {
@Override
public void run() {
artifactsResultInAnotherThead.set(project.getArtifacts().size());
artifactsResultInAnotherThread.set(project.getArtifacts().size());
}
});
t.start();
t.join();
assertEquals( project.getArtifacts().size(), artifactsResultInAnotherThead.get() );
assertEquals( project.getArtifacts().size(), artifactsResultInAnotherThread.get() );
}
public void testDontResolveDependencies()