cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1098614 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/di/server/ServerCaseModule.java
Date Mon, 02 May 2011 14:57:21 GMT
Author: aadamchik
Date: Mon May  2 14:57:20 2011
New Revision: 1098614

URL: http://svn.apache.org/viewvc?rev=1098614&view=rev
Log:
rebinding test DataContext without scope to allow multiple DC's in a single test

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/di/server/ServerCaseModule.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/di/server/ServerCaseModule.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/di/server/ServerCaseModule.java?rev=1098614&r1=1098613&r2=1098614&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/di/server/ServerCaseModule.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/di/server/ServerCaseModule.java
Mon May  2 14:57:20 2011
@@ -85,11 +85,11 @@ public class ServerCaseModule implements
         binder
                 .bind(ObjectContext.class)
                 .toProvider(ServerCaseObjectContextProvider.class)
-                .in(testScope);
+                .withoutScope();
         binder
                 .bind(DataContext.class)
                 .toProvider(ServerCaseDataContextProvider.class)
-                .in(testScope);
+                .withoutScope();
 
         binder.bind(DBHelper.class).toProvider(FlavoredDBHelperProvider.class).in(
                 testScope);



Mime
View raw message