use of org.commonjava.maven.ext.io.resolver.GalleyInfrastructure in project pom-manipulation-ext by release-engineering.
the class FileIOTest method before.
@Before
public void before() throws Exception {
File res = folder.newFolder();
GalleyInfrastructure galleyInfra = new GalleyInfrastructure(null, null, null, null, null, null, null, null, res);
FieldUtils.writeField(fileIO, "infra", galleyInfra, true);
}
use of org.commonjava.maven.ext.io.resolver.GalleyInfrastructure in project pom-manipulation-ext by release-engineering.
the class ModelResolverTest method resolveArtifactTest.
@Test(expected = ManipulationException.class)
@BMRule(name = "retrieve-first-null", targetClass = "ArtifactManagerImpl", targetMethod = "retrieveFirst(List<? extends Location> locations, ArtifactRef ref)", targetLocation = "AT ENTRY", action = "RETURN null")
public void resolveArtifactTest() throws Exception {
final ManipulationSession session = new ManipulationSession();
final GalleyInfrastructure galleyInfra = new GalleyInfrastructure(session.getTargetDir(), session.getRemoteRepositories(), session.getLocalRepository(), session.getSettings(), session.getActiveProfiles(), null, null, null, temp.newFolder("cache-dir"));
final GalleyAPIWrapper wrapper = new GalleyAPIWrapper(galleyInfra);
final ModelIO model = new ModelIO();
FieldUtils.writeField(model, "galleyWrapper", wrapper, true);
model.resolveRawModel(SimpleProjectVersionRef.parse("org.commonjava:commonjava:5"));
}
use of org.commonjava.maven.ext.io.resolver.GalleyInfrastructure in project pom-manipulation-ext by release-engineering.
the class DistributionEnforcingManipulatorTest method before.
@Before
public void before() throws Exception {
userCliProperties = new Properties();
session = new ManipulationSession();
final GalleyInfrastructure galleyInfra = new GalleyInfrastructure(session.getTargetDir(), session.getRemoteRepositories(), session.getLocalRepository(), session.getSettings(), session.getActiveProfiles(), null, null, null, temp.newFolder("cache-dir"));
final GalleyAPIWrapper wrapper = new GalleyAPIWrapper(galleyInfra);
manipulator = new DistributionEnforcingManipulator();
FieldUtils.writeField(manipulator, "galleyWrapper", wrapper, true);
}
Aggregations