geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r386567 - in /geronimo/branches/1.1/modules: axis-builder/src/test/org/apache/geronimo/axis/builder/ServiceReferenceTest.java kernel/src/test/org/apache/geronimo/kernel/SimpleGBeanTest.java
Date Fri, 17 Mar 2006 08:11:21 GMT
Author: djencks
Date: Fri Mar 17 00:11:20 2006
New Revision: 386567

URL: http://svn.apache.org/viewcvs?rev=386567&view=rev
Log:
fix SimpleGBeanTest by explicitly specifying persistent attributes.
fix ServiceReferenceTest.

Modified:
    geronimo/branches/1.1/modules/axis-builder/src/test/org/apache/geronimo/axis/builder/ServiceReferenceTest.java
    geronimo/branches/1.1/modules/kernel/src/test/org/apache/geronimo/kernel/SimpleGBeanTest.java

Modified: geronimo/branches/1.1/modules/axis-builder/src/test/org/apache/geronimo/axis/builder/ServiceReferenceTest.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.1/modules/axis-builder/src/test/org/apache/geronimo/axis/builder/ServiceReferenceTest.java?rev=386567&r1=386566&r2=386567&view=diff
==============================================================================
--- geronimo/branches/1.1/modules/axis-builder/src/test/org/apache/geronimo/axis/builder/ServiceReferenceTest.java
(original)
+++ geronimo/branches/1.1/modules/axis-builder/src/test/org/apache/geronimo/axis/builder/ServiceReferenceTest.java
Fri Mar 17 00:11:20 2006
@@ -69,6 +69,7 @@
 import org.apache.geronimo.deployment.util.UnpackedJarFile;
 import org.apache.geronimo.j2ee.deployment.EJBModule;
 import org.apache.geronimo.j2ee.deployment.Module;
+import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
 import org.apache.geronimo.kernel.config.ConfigurationModuleType;
 import org.apache.geronimo.kernel.repository.Artifact;
 import org.apache.geronimo.kernel.Jsr77Naming;
@@ -77,6 +78,7 @@
 import org.apache.geronimo.xbeans.j2ee.JavaWsdlMappingType;
 import org.apache.geronimo.xbeans.j2ee.PackageMappingType;
 import org.apache.geronimo.xbeans.geronimo.naming.GerServiceRefType;
+import org.apache.geronimo.gbean.AbstractName;
 
 /**
  * @version $Rev:385232 $ $Date$
@@ -109,10 +111,12 @@
         Map nameKeys = new HashMap();
         nameKeys.put("domain", "geronimo");
         environment.setProperties(nameKeys);
-        context = new DeploymentContext(tmpbasedir, environment, ConfigurationModuleType.CAR,
new Jsr77Naming());
+        Jsr77Naming naming = new Jsr77Naming();
+        context = new DeploymentContext(tmpbasedir, environment, ConfigurationModuleType.CAR,
naming);
 
         File moduleLocation = new File(tmpbasedir, "ejb");
         moduleLocation.mkdirs();
+        AbstractName moduleName = naming.createRootName(configID, "testejb", NameFactory.EJB_MODULE);
         module = new EJBModule(true, moduleName, environment, new UnpackedJarFile(moduleLocation),
"ejb", null, null, null);
 
         runExternalWSTest = System.getProperty("geronimo.run.external.webservicetest", "false").equals("true");

Modified: geronimo/branches/1.1/modules/kernel/src/test/org/apache/geronimo/kernel/SimpleGBeanTest.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.1/modules/kernel/src/test/org/apache/geronimo/kernel/SimpleGBeanTest.java?rev=386567&r1=386566&r2=386567&view=diff
==============================================================================
--- geronimo/branches/1.1/modules/kernel/src/test/org/apache/geronimo/kernel/SimpleGBeanTest.java
(original)
+++ geronimo/branches/1.1/modules/kernel/src/test/org/apache/geronimo/kernel/SimpleGBeanTest.java
Fri Mar 17 00:11:20 2006
@@ -95,6 +95,7 @@
         private static final GBeanInfo GBEAN_INFO;
         static {
             GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(TestGBean.class);
+            infoBuilder.setPersistentAttributes(new String[] {"value"});
             infoBuilder.setConstructor(new String[] {"value"});
             GBEAN_INFO = infoBuilder.getBeanInfo();
         }



Mime
View raw message