Add jar that should have been added as part of 69c61d0

This commit is contained in:
Andy Wilkinson 2014-08-21 16:25:37 +01:00
parent 69c61d0e8e
commit c75782424c
2 changed files with 1 additions and 4 deletions

View File

@ -24,7 +24,6 @@ import org.gradle.tooling.ProjectConnection;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.boot.dependency.tools.ManagedDependencies;
import org.springframework.util.FileCopyUtils;
import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assert.assertThat;
@ -48,10 +47,8 @@ public class MultiProjectRepackagingTests {
@Test
public void repackageWithTransitiveFileDependency() throws Exception {
FileCopyUtils.copy(new File("src/test/resources/foo.jar"), new File(
"target/multi-project-repackage/foo.jar"));
project.newBuild().forTasks("clean", "build")
.withArguments("-PbootVersion=" + BOOT_VERSION, "-Prepackage=true").run();
.withArguments("-PbootVersion=" + BOOT_VERSION, "-Prepackage=true").run();
File buildLibs = new File("target/multi-project-repackage/main/build/libs");
JarFile jarFile = new JarFile(new File(buildLibs, "main.jar"));
assertThat(jarFile.getEntry("lib/commons-logging-1.1.3.jar"), notNullValue());