ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ange...@apache.org
Subject svn commit: r1138500 - /incubator/ace/trunk/ace-integrationtests/src/test/java/org/apache/ace/it/repositoryadmin/RepositoryAdminTest.java
Date Wed, 22 Jun 2011 15:04:52 GMT
Author: angelos
Date: Wed Jun 22 15:04:52 2011
New Revision: 1138500

URL: http://svn.apache.org/viewvc?rev=1138500&view=rev
Log:
ACE-149 Fixed the tests, since some of the equality semantics have changed.

Modified:
    incubator/ace/trunk/ace-integrationtests/src/test/java/org/apache/ace/it/repositoryadmin/RepositoryAdminTest.java

Modified: incubator/ace/trunk/ace-integrationtests/src/test/java/org/apache/ace/it/repositoryadmin/RepositoryAdminTest.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-integrationtests/src/test/java/org/apache/ace/it/repositoryadmin/RepositoryAdminTest.java?rev=1138500&r1=1138499&r2=1138500&view=diff
==============================================================================
--- incubator/ace/trunk/ace-integrationtests/src/test/java/org/apache/ace/it/repositoryadmin/RepositoryAdminTest.java
(original)
+++ incubator/ace/trunk/ace-integrationtests/src/test/java/org/apache/ace/it/repositoryadmin/RepositoryAdminTest.java
Wed Jun 22 15:04:52 2011
@@ -42,6 +42,7 @@ import org.junit.After;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.ops4j.pax.exam.Option;
+import org.ops4j.pax.exam.container.def.options.CleanCachesOption;
 import org.ops4j.pax.exam.container.def.options.VMOption;
 import org.ops4j.pax.exam.junit.JUnit4TestRunner;
 import org.osgi.framework.Constants;
@@ -83,6 +84,7 @@ public class RepositoryAdminTest extends
         return options(
             systemProperty("org.osgi.service.http.port").value("" + TestConstants.PORT),
             new VMOption("-ea"),
+            new CleanCachesOption(),
             provision(
                 Osgi.compendium(),
                 Felix.dependencyManager(),
@@ -1312,6 +1314,7 @@ public class RepositoryAdminTest extends
 
         // Create a JAR file which looks like a resource processor supplying bundle.
         attributes.putValue(BundleHelper.KEY_RESOURCE_PROCESSOR_PID, "someProcessor");
+        attributes.putValue(BundleHelper.KEY_VERSION, "1.0.0.processor");
 
         temp = File.createTempFile("org.apache.ace.test", ".jar");
         temp.deleteOnExit();
@@ -1935,11 +1938,11 @@ class MockArtifactHelper implements Arti
         return null;
     }
     public String[] getDefiningKeys() {
-        return new String[] {ArtifactObject.KEY_URL};
+        return new String[]{ArtifactObject.KEY_URL};
     }
 
     public String[] getMandatoryAttributes() {
-        return new String[] {ArtifactObject.KEY_URL};
+        return new String[]{ArtifactObject.KEY_URL};
     }
 
     public <TYPE extends ArtifactObject> String getAssociationFilter(TYPE obj, Map<String,
String> properties) {



Mime
View raw message