geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r436791 - /geronimo/server/branches/sachin/modules/service-builder/src/test/java/org/apache/geronimo/deployment/service/ServiceConfigBuilderTest.java
Date Fri, 25 Aug 2006 13:48:45 GMT
Author: sppatel
Date: Fri Aug 25 06:48:44 2006
New Revision: 436791

URL: http://svn.apache.org/viewvc?rev=436791&view=rev
Log:
fix test to use DeployableModule

Modified:
    geronimo/server/branches/sachin/modules/service-builder/src/test/java/org/apache/geronimo/deployment/service/ServiceConfigBuilderTest.java

Modified: geronimo/server/branches/sachin/modules/service-builder/src/test/java/org/apache/geronimo/deployment/service/ServiceConfigBuilderTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/sachin/modules/service-builder/src/test/java/org/apache/geronimo/deployment/service/ServiceConfigBuilderTest.java?rev=436791&r1=436790&r2=436791&view=diff
==============================================================================
--- geronimo/server/branches/sachin/modules/service-builder/src/test/java/org/apache/geronimo/deployment/service/ServiceConfigBuilderTest.java
(original)
+++ geronimo/server/branches/sachin/modules/service-builder/src/test/java/org/apache/geronimo/deployment/service/ServiceConfigBuilderTest.java
Fri Aug 25 06:48:44 2006
@@ -29,10 +29,7 @@
 import javax.management.ObjectName;
 
 import junit.framework.TestCase;
-import org.apache.geronimo.deployment.DeploymentContext;
-import org.apache.geronimo.deployment.FooBarBean;
-import org.apache.geronimo.deployment.ModuleIDBuilder;
-import org.apache.geronimo.deployment.NamespaceDrivenBuilder;
+import org.apache.geronimo.deployment.*;
 import org.apache.geronimo.deployment.xbeans.ModuleDocument;
 import org.apache.geronimo.deployment.xbeans.ModuleType;
 import org.apache.geronimo.gbean.AbstractName;
@@ -63,9 +60,10 @@
         URL url = getClass().getResource("/empty.jar");
         File file = new File(url.getPath());
         JarFile jar = new JarFile(file);
+        DeployableModule module = DeployableModuleFactory.createDeployableModule(jar);
         assertTrue(file.exists());
         ServiceConfigBuilder builder = new ServiceConfigBuilder(parentEnvironment, null,
new Jsr77Naming());
-        assertNull(builder.getDeploymentPlan(null, jar, new ModuleIDBuilder()));
+        assertNull(builder.getDeploymentPlan(null, module, new ModuleIDBuilder()));
         jar.close();
     }
 



Mime
View raw message