use of org.eclipse.ceylon.cmr.api.RepositoryManager in project ceylon by eclipse.
the class SmokeTestCase method testPropertiesResolver.
@Test
public void testPropertiesResolver() throws Exception {
RepositoryManager manager = getRepositoryManager();
ArtifactContext context = new ArtifactContext(null, "old-jar", "1.2.CR1", ArtifactContext.JAR);
File file = manager.getArtifact(context);
Assert.assertNotNull(file);
}
use of org.eclipse.ceylon.cmr.api.RepositoryManager in project ceylon by eclipse.
the class SmokeTestCase method testCompleteOrgBinaryIncompatible.
@Test
public void testCompleteOrgBinaryIncompatible() throws Exception {
RepositoryManager manager = getRepositoryManager();
ModuleDetails[] expected = new ModuleDetails[] {};
testComplete("org", expected, manager, Type.JVM, 1234, 0, 1234, 0);
}
use of org.eclipse.ceylon.cmr.api.RepositoryManager in project ceylon by eclipse.
the class SmokeTestCase method testOverridesRemove.
@Test
public void testOverridesRemove() throws Exception {
RepositoryManager manager = getRepositoryManager("testsuite/src/test/resources/overrides.xml");
ArtifactResult result = manager.getArtifactResult(null, "moduletest", "0.1");
Assert.assertNotNull(result);
Assert.assertEquals(1, result.dependencies().size());
}
use of org.eclipse.ceylon.cmr.api.RepositoryManager in project ceylon by eclipse.
the class SmokeTestCase method testOverridesRemoveNoVersion.
@Test
public void testOverridesRemoveNoVersion() throws Exception {
RepositoryManager manager = getRepositoryManager("testsuite/src/test/resources/overridesNoVersion.xml");
ArtifactResult result = manager.getArtifactResult(null, "moduletest", "0.1");
Assert.assertNotNull(result);
Assert.assertEquals(1, result.dependencies().size());
}
use of org.eclipse.ceylon.cmr.api.RepositoryManager in project ceylon by eclipse.
the class SmokeTestCase method testOverridesRemoveGlobal.
@Test
public void testOverridesRemoveGlobal() throws Exception {
RepositoryManager manager = getRepositoryManager("testsuite/src/test/resources/overridesGlobal.xml");
ArtifactResult result = manager.getArtifactResult(null, "moduletest", "0.1");
Assert.assertNotNull(result);
Assert.assertEquals(1, result.dependencies().size());
}
Aggregations