package org.gozer.services;

import org.gozer.model.Dependency;
import org.junit.Test;

import java.io.File;

import static org.assertj.core.api.Assertions.assertThat;
import static org.gozer.builders.DependencyBuilder.aDependency;

public class DependenciesServiceTest {

    @Test
    public void should_resolve_maven_dependency() {
        DependenciesService service = new DependenciesService();
        Dependency dependency = aDependency().withGroupId("org.apache.camel")
                                            .withArtifactId("camel-core")
                                            .withVersion("2.10.4")
                                            .build();
        service.resolve(dependency);

        assertThat(new File("target/repositories/org/apache/camel/camel-core/2.10.4/", "camel-core-2.10.4.jar").exists()).isTrue();
    }
}

@@ -704,16 +704,59 @@
 ency);%0A%0A
+        // TODO use an injected properties%0A
         
@@ -858,16 +858,17 @@
 .4.jar%22)
+)
 .exists(
@@ -872,18 +872,8 @@
 ts()
-).isTrue()
 ;%0A  

Clean the DependenciesService test