Skip to content

Commit

Permalink
CMRTest: added test for maven overrides ceylon/ceylon-module-resolver#81
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Oct 28, 2013
1 parent d0fccc6 commit 65e7206
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/src/com/redhat/ceylon/compiler/java/test/cmr/CMRTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,16 @@ public void testMdlAetherMissingDependencies() throws IOException{
compareErrors(actualErrors, expectedErrors);
}

@Test
public void testMdlAetherMissingDependenciesOverride() throws IOException{
// Try to compile the ceylon module
CeyloncTaskImpl ceylonTask = getCompilerTask(Arrays.asList("-out", destDir,
"-rep", "aether",
"-maven-overrides", getPackagePath()+"/modules/bug1100/overrides.xml"/*, "-verbose:cmr"*/),
"modules/bug1100/module.ceylon", "modules/bug1100/test.ceylon");
assertEquals("Compilation failed", Boolean.TRUE, ceylonTask.call());
}

@Test
public void testMdlAetherMissingDependencies2() throws IOException{

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<maven-overrides>
<artifact groupId="org.apache.camel" artifactId="camel-jetty" version="2.9.4">
<add groupId="org.apache.camel" artifactId="camel-http" version="2.9.4" shared="true"/>
<add groupId="org.apache.camel" artifactId="camel-core" version="2.9.4" shared="true"/>
<add groupId="org.slf4j" artifactId="slf4j-api" version="1.6.1"/>
</artifact>
<artifact groupId="org.apache.camel" artifactId="camel-http" version="2.9.4">
<add groupId="org.apache.camel" artifactId="camel-core" version="2.9.4" shared="true"/>
<add groupId="org.slf4j" artifactId="slf4j-api" version="1.6.1"/>
</artifact>
<artifact groupId="org.eclipse.jetty" artifactId="jetty-server" version="7.5.4.v20111024">
<add groupId="org.eclipse.jetty" artifactId="jetty-util" version="7.5.4.v20111024" shared="true"/>
</artifact>
<artifact groupId="org.eclipse.jetty" artifactId="jetty-servlet" version="7.5.4.v20111024">
<add groupId="org.eclipse.jetty" artifactId="jetty-server" version="7.5.4.v20111024" shared="true"/>
<add groupId="javax.servlet" artifactId="servlet-api" version="2.5"/>
</artifact>
<artifact groupId="org.eclipse.jetty" artifactId="jetty-client" version="7.5.4.v20111024">
<add groupId="org.eclipse.jetty" artifactId="jetty-util" version="7.5.4.v20111024" shared="true"/>
<add groupId="org.eclipse.jetty" artifactId="jetty-http" version="7.5.4.v20111024" shared="true"/>
<add groupId="org.eclipse.jetty" artifactId="jetty-io" version="7.5.4.v20111024" shared="true"/>
</artifact>
<artifact groupId="org.eclipse.jetty" artifactId="jetty-http" version="7.5.4.v20111024">
<add groupId="javax.servlet" artifactId="servlet-api" version="2.5"/>
<add groupId="org.eclipse.jetty" artifactId="jetty-util" version="7.5.4.v20111024" shared="true"/>
<add groupId="org.eclipse.jetty" artifactId="jetty-io" version="7.5.4.v20111024" shared="true"/>
</artifact>
</maven-overrides>

0 comments on commit 65e7206

Please sign in to comment.