[pkg-java] r15669 - in trunk/maven-repo-helper/src: main/java/org/debian/maven/repo test/java/org/debian/maven/repo

Ludovic Claude ludovicc-guest at alioth.debian.org
Sun Jan 8 23:50:06 UTC 2012


Author: ludovicc-guest
Date: 2012-01-08 23:50:06 +0000 (Sun, 08 Jan 2012)
New Revision: 15669

Modified:
   trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/DependencyRuleSet.java
   trunk/maven-repo-helper/src/test/java/org/debian/maven/repo/DependencyRuleTest.java
Log:
Update tests

Modified: trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/DependencyRuleSet.java
===================================================================
--- trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/DependencyRuleSet.java	2012-01-08 23:48:49 UTC (rev 15668)
+++ trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/DependencyRuleSet.java	2012-01-08 23:50:06 UTC (rev 15669)
@@ -146,7 +146,7 @@
             out.println(description);
 
             for (DependencyRule rule: getRules()) {
-                if (dontDuplicate == null || !dontDuplicate.getRules().contains(rule)
+                if ((dontDuplicate == null || !dontDuplicate.getRules().contains(rule))
                         // Don't save implicit rules
                         && !DependencyRule.TO_DEBIAN_VERSION_RULE.equals(rule)
                         && !DependencyRule.MAVEN_PLUGINS_KEEP_VERSION_RULE.equals(rule)) {

Modified: trunk/maven-repo-helper/src/test/java/org/debian/maven/repo/DependencyRuleTest.java
===================================================================
--- trunk/maven-repo-helper/src/test/java/org/debian/maven/repo/DependencyRuleTest.java	2012-01-08 23:48:49 UTC (rev 15668)
+++ trunk/maven-repo-helper/src/test/java/org/debian/maven/repo/DependencyRuleTest.java	2012-01-08 23:50:06 UTC (rev 15669)
@@ -65,4 +65,8 @@
         assertEquals(0, servlet23.compareTo(servlet23));
     }
 
+    public void testEquals() {
+        DependencyRule mavenPlugin = new DependencyRule("* * maven-plugin * * *");
+        assertTrue(mavenPlugin.equals(DependencyRule.MAVEN_PLUGINS_KEEP_VERSION_RULE));
+    }
 }




More information about the pkg-java-commits mailing list