gdamour     2005/01/07 01:37:55

  Modified:    modules/openejb-builder/src/test/org/openejb/deployment
                        CMPSystemMethodIndicesTest.java
  Log:

  Represent some EJBQL progress.

  

  o aggregate functions are now partially supported. At least they do not

  generate parse errors;

  

  o selects are hooked in;

  

  o EJBQL returned types are extracted. This allows:

  * in the case of finders, to check that the returned type is the abstract

  schema type of the owning EJB.

  * in the case of selects, to return the relevant type.

  

  o EJBQL queries use EJB abstract schema names instead of EJB names.

  

  
  Revision  Changes    Path
  1.3       +3 -2      
openejb/modules/openejb-builder/src/test/org/openejb/deployment/CMPSystemMethodIndicesTest.java
  
  Index: CMPSystemMethodIndicesTest.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/test/org/openejb/deployment/CMPSystemMethodIndicesTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CMPSystemMethodIndicesTest.java   11 Nov 2004 13:27:44 -0000      1.2
  +++ CMPSystemMethodIndicesTest.java   7 Jan 2005 06:37:55 -0000       1.3
  @@ -48,6 +48,7 @@
   package org.openejb.deployment;
   
   import java.util.Collections;
  +import java.util.HashMap;
   import java.util.LinkedHashMap;
   import java.util.Map;
   import javax.ejb.EntityContext;
  @@ -70,7 +71,7 @@
       public void testSystemMethodIndices() throws Exception {
           CMPContainerBuilder builder = new CMPContainerBuilder();
           builder.setClassLoader(MockCMPEJB.class.getClassLoader());
  -        Map vopMap = builder.buildVopMap(MockCMPEJB.class, new 
CacheTable("mock", new CacheSlot[0], null, null, null, null), 
Collections.EMPTY_MAP, null, null, null, null, null, null, new LinkedHashMap());
  +        Map vopMap = builder.buildVopMap(MockCMPEJB.class, new 
CacheTable("mock", new CacheSlot[0], null, null, null, null), 
Collections.EMPTY_MAP, null, null, null, null, null, null, new HashMap(), new 
HashMap());
           InterfaceMethodSignature[] signatures = (InterfaceMethodSignature[]) 
vopMap.keySet().toArray(new InterfaceMethodSignature[vopMap.size()]);
           SystemMethodIndices systemMethodIndices = 
SystemMethodIndices.createSystemMethodIndices(signatures, "setEntityContext", 
new String(EntityContext.class.getName()), "unsetEntityContext");
           
assertFalse(systemMethodIndices.getEjbActivateInvocation(null).getMethodIndex() 
== -1);
  
  
  

Reply via email to