Author: [email protected]
Date: Mon Dec 12 16:22:09 2011
New Revision: 1831

Log:
AMDATU-477 Allowing compareTo invocation that occur in jdk7

Modified:
   
trunk/amdatu-core/useradminstore-fs/src/test/java/org/amdatu/core/useradminstore/fs/osgi/FSUserAdminStorageProviderActivatorTest.java

Modified: 
trunk/amdatu-core/useradminstore-fs/src/test/java/org/amdatu/core/useradminstore/fs/osgi/FSUserAdminStorageProviderActivatorTest.java
==============================================================================
--- 
trunk/amdatu-core/useradminstore-fs/src/test/java/org/amdatu/core/useradminstore/fs/osgi/FSUserAdminStorageProviderActivatorTest.java
       (original)
+++ 
trunk/amdatu-core/useradminstore-fs/src/test/java/org/amdatu/core/useradminstore/fs/osgi/FSUserAdminStorageProviderActivatorTest.java
       Mon Dec 12 16:22:09 2011
@@ -108,7 +108,7 @@
                 will(returnValue(null));
 
                 
allowing(bundleContext).getServiceReferences(with(LogService.class.getName()), 
with(any(String.class)));
-                will(returnValue(null));
+                will(returnValue(null));
 
                 // setup expected calls to tenant services
                 allowing(tenantService).getId();
@@ -128,6 +128,7 @@
                 will(returnValue(tenantBundle));
                 
allowing(tenantServiceReference).getProperty("org.apache.felix.dependencymanager.aspect");
                 will(returnValue(null));
+                
allowing(tenantServiceReference).compareTo(tenantServiceReference);
 
                 // assert that the adaptor will get the tenant service
                 
one(bundleContext).getServiceReferences(with(Tenant.class.getName()), 
with(any(String.class)));
@@ -149,6 +150,7 @@
                 will(returnValue(configBundle));
                 
allowing(configServiceReference).getProperty("org.apache.felix.dependencymanager.aspect");
                 will(returnValue(null));
+                
allowing(configServiceReference).compareTo(configServiceReference);
 
                 // assert that the service will get the config service
                 
allowing(bundleContext).getServiceReference(with(FSUserAdminStorageConfig.class.getName()));
@@ -246,6 +248,7 @@
                 will(returnValue(tenantBundle));
                 
allowing(tenantServiceReference).getProperty("org.apache.felix.dependencymanager.aspect");
                 will(returnValue(null));
+                
allowing(tenantServiceReference).compareTo(tenantServiceReference);
 
                 // assert that the adaptor will get the tenant service
                 
one(bundleContext).getServiceReferences(with(Tenant.class.getName()), 
with(any(String.class)));
@@ -267,6 +270,7 @@
                 will(returnValue(configBundle));
                 
allowing(configServiceReference).getProperty("org.apache.felix.dependencymanager.aspect");
                 will(returnValue(null));
+                
allowing(configServiceReference).compareTo(configServiceReference);
 
                 // assert that the service will get the config service
                 
allowing(bundleContext).getServiceReference(with(FSUserAdminStorageConfig.class.getName()));
_______________________________________________
Amdatu-commits mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-commits

Reply via email to