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);

        // TODO use an injected properties
        assertThat(new File("target/repositories/org/apache/camel/camel-core/2.10.4/", "camel-core-2.10.4.jar")).exists();
    }
}

@@ -390,16 +390,37 @@
 Service(
+%22target/repositories%22
 );%0A     
@@ -729,51 +729,8 @@
 );%0A%0A
-        // TODO use an injected properties%0A
     

Correct unit test