From 65e7206cc0889d50f0c62f8ff62758990762c3ce Mon Sep 17 00:00:00 2001 From: Stephane Epardaud Date: Mon, 28 Oct 2013 13:25:27 +0100 Subject: [PATCH] CMRTest: added test for maven overrides ceylon/ceylon-module-resolver#81 --- .../compiler/java/test/cmr/CMRTest.java | 10 +++++++ .../test/cmr/modules/bug1100/overrides.xml | 28 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 test/src/com/redhat/ceylon/compiler/java/test/cmr/modules/bug1100/overrides.xml diff --git a/test/src/com/redhat/ceylon/compiler/java/test/cmr/CMRTest.java b/test/src/com/redhat/ceylon/compiler/java/test/cmr/CMRTest.java index a9feeff3c..008343573 100755 --- a/test/src/com/redhat/ceylon/compiler/java/test/cmr/CMRTest.java +++ b/test/src/com/redhat/ceylon/compiler/java/test/cmr/CMRTest.java @@ -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{ diff --git a/test/src/com/redhat/ceylon/compiler/java/test/cmr/modules/bug1100/overrides.xml b/test/src/com/redhat/ceylon/compiler/java/test/cmr/modules/bug1100/overrides.xml new file mode 100644 index 000000000..e0d000840 --- /dev/null +++ b/test/src/com/redhat/ceylon/compiler/java/test/cmr/modules/bug1100/overrides.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file