gdamour 2005/02/02 07:53:08
Modified: modules/openejb-builder/src/test/org/openejb/deployment
CMPSystemMethodIndicesTest.java
Log:
Select methods should be added to the instance map and not to the interface
one.
Add a deployment test to verify that finders and selects are properly
hooked in and invokable.
Revision Changes Path
1.4 +2 -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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CMPSystemMethodIndicesTest.java 7 Jan 2005 06:37:55 -0000 1.3
+++ CMPSystemMethodIndicesTest.java 2 Feb 2005 12:53:08 -0000 1.4
@@ -71,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 HashMap(), new
HashMap());
+ 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());
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);