From 4c524848138e692eb1775d64e88b4c9a86d87560 Mon Sep 17 00:00:00 2001 From: Fabrizio Giustina Date: Mon, 31 Oct 2005 17:44:27 +0000 Subject: [PATCH] final fix for expected results git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@329869 13f79535-47bb-0310-9956-ffa450edef68 --- .../EclipsePluginMasterProjectTest.java | 6 ++ .../projects/master-test/module-1/classpath | 2 +- .../projects/master-test/module-2/classpath | 5 +- .../projects/master-test/module-2/wtpmodules | 63 ++++++++++--------- 4 files changed, 41 insertions(+), 35 deletions(-) diff --git a/maven-plugins/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginMasterProjectTest.java b/maven-plugins/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginMasterProjectTest.java index 3b5cf4cf54..a706e2eedc 100644 --- a/maven-plugins/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginMasterProjectTest.java +++ b/maven-plugins/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginMasterProjectTest.java @@ -73,12 +73,18 @@ public class EclipsePluginMasterProjectTest executeMaven2CommandLine( basedir ); assertFileEquals( null, new File( basedir, "module-1/project" ), new File( basedir, "module-1/.project" ) ); + + // @fixme missing direct optional dependency assertFileEquals( null, new File( basedir, "module-1/classpath" ), new File( basedir, "module-1/.classpath" ) ); assertFileEquals( null, new File( basedir, "module-1/wtpmodules" ), new File( basedir, "module-1/.wtpmodules" ) ); // the real test: this should include any sort of direct/transitive dependency handled by mvn assertFileEquals( null, new File( basedir, "module-2/project" ), new File( basedir, "module-2/.project" ) ); + + // @fixme missing direct optional dependency + unneeded transitive dependencies assertFileEquals( null, new File( basedir, "module-2/classpath" ), new File( basedir, "module-2/.classpath" ) ); + + // @fixme the list of dependencies in .wtpmodules should be the same added by the war plugin assertFileEquals( null, new File( basedir, "module-2/wtpmodules" ), new File( basedir, "module-2/.wtpmodules" ) ); } diff --git a/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-1/classpath b/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-1/classpath index bc03521bae..5684624dbf 100644 --- a/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-1/classpath +++ b/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-1/classpath @@ -4,7 +4,7 @@ - + diff --git a/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-2/classpath b/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-2/classpath index b4259b5529..fa355c055d 100644 --- a/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-2/classpath +++ b/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-2/classpath @@ -3,13 +3,10 @@ - - + - - \ No newline at end of file diff --git a/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-2/wtpmodules b/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-2/wtpmodules index f6a5fe0df9..280d0f2c9d 100644 --- a/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-2/wtpmodules +++ b/maven-plugins/maven-eclipse-plugin/src/test/projects/master-test/module-2/wtpmodules @@ -1,31 +1,34 @@ - - - - 2.4 - - - - - uses - - - uses - - - uses - - - uses - - - uses - - - uses - - - uses - - - + + + + 2.4 + + + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + uses + + + \ No newline at end of file