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

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

Clean the DependenciesService test