I am getting a failure in BasicClusterableRequestHandlerTest.

The setup tries to initialize a BeanContextMock, but there is no longer a default constructor for BeanContext.

I tested beanContext = (BeanContext) mock(BeanContext.class, new Object[]{"aDeploymentId", null, new ModuleContext("", new AppContext("", SystemInstance.get(), BasicClusterableRequestHandlerTest.class.getClassLoader(), null, null, false), null), Object.class, null, null, null, null, null, null, null, null, null, false}, "BeanContext");

This works in so far as the BeanContextMock is created , but is more than likely not correct as I have no idea how to properly initialize a new BeanContext(...) for a test.
The Mock is still not getting what it needs for the test.

Here is the full trace:

Testsuite: org.apache.openejb.server.ejbd.BasicClusterableRequestHandlerTest
Tests run: 3, Failures: 0, Errors: 2, Time elapsed: 3,603 sec

Testcase: testUpdateServerWhenRequestHashDiffersFromServerSideHash(org.apache.openejb.server.ejbd.BasicClusterableRequestHandlerTest): Caused an ERROR

The following RMock system exceptions were thrown by the system:
com.agical.rmock.core.exception.UnexpectedInvocationException
com.agical.rmock.core.exception.UnexpectedInvocationException

signalling a failing test. One or more of them was caught by your code
which indicatates a bad exception strategy in your code.
Good advice is that you subclass Javas Exception/RuntimeException/Error to be specific to your code base,
and that you never catch the Java base exceptions, only your own subclasses.
caused by:
com.agical.rmock.core.exception.UnexpectedInvocationException:
UNEXPECTED!
No expectation matched: BeanContext.toString()
-----------------------------------------------------------------
0 expectation(s) have not yet been matched
(indicated by '->' in the listing below)
-----------------------------------------------------------------
Could not generate expectations due to exception!
com.agical.rmock.core.exception.UnexpectedInvocationException:
UNEXPECTED!
No expectation matched: BeanContext.toString()
-----------------------------------------------------------------
0 expectation(s) have not yet been matched
(indicated by '->' in the listing below)
-----------------------------------------------------------------
Could not generate expectations due to exception!
at com.agical.rmock.core.expectation.InvocationVerifier.getException(InvocationVerifier.java:56) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:44) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.toString(<generated>)
at com.agical.rmock.core.match.reference.ToStringReference.describeWith(ToStringReference.java:30) at com.agical.rmock.core.describe.impl.ExpressionDescriberImpl.describe(ExpressionDescriberImpl.java:38) at com.agical.rmock.core.match.constraint.AbstractConstraint.describeWith(AbstractConstraint.java:50) at com.agical.rmock.core.describe.impl.ExpectationDescriberImpl.writeArguments(ExpectationDescriberImpl.java:42) at com.agical.rmock.core.describe.impl.ExpectationDescriberImpl.describe(ExpectationDescriberImpl.java:36) at com.agical.rmock.core.describe.impl.DocumentExpectationsVisitor.visit(DocumentExpectationsVisitor.java:48) at com.agical.rmock.core.expectation.ExpectationImpl.accept(ExpectationImpl.java:97) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.EngineException.generateMessage(EngineException.java:27) at com.agical.rmock.core.expectation.EngineException.<init>(EngineException.java:18) at com.agical.rmock.core.exception.RMockExpectationException.<init>(RMockExpectationException.java:30) at com.agical.rmock.core.exception.UnexpectedInvocationException.<init>(UnexpectedInvocationException.java:19) at com.agical.rmock.core.expectation.InvocationVerifier.getException(InvocationVerifier.java:56) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:44) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.toString(<generated>)
        at java.lang.String.valueOf(String.java:2826)
        at java.lang.StringBuffer.append(StringBuffer.java:219)
at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:37) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.equals(<generated>)
at com.agical.rmock.core.match.reference.ToStringReference.objectEquals(ToStringReference.java:41) at com.agical.rmock.core.match.constraint.EqualsConstraint.passes(EqualsConstraint.java:24) at com.agical.rmock.core.expectation.InvocationExpectationVisitor.matchArguments(InvocationExpectationVisitor.java:66) at com.agical.rmock.core.expectation.InvocationExpectationVisitor.visit(InvocationExpectationVisitor.java:49) at com.agical.rmock.core.expectation.ExpectationImpl.accept(ExpectationImpl.java:97) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:29) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.InterfaceInvocationHandler.invoke(InterfaceInvocationHandler.java:85) at org.apache.openejb.ClusteredRPCContainerMock.getLocations(<generated>) at org.apache.openejb.server.ejbd.BasicClusterableRequestHandler.updateServer(BasicClusterableRequestHandler.java:34) at org.apache.openejb.server.ejbd.BasicClusterableRequestHandlerTest.testUpdateServerWhenRequestHashDiffersFromServerSideHash(BasicClusterableRequestHandlerTest.java:88)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.strategy.impl.MethodStep.invokeMethod(MethodStep.java:37) at com.agical.rmock.core.strategy.impl.MethodStep.run(MethodStep.java:29) at com.agical.rmock.core.strategy.impl.ExceptionVerifierTestStepDecorator.run(ExceptionVerifierTestStepDecorator.java:22) at com.agical.rmock.core.strategy.impl.CompositeStep.run(CompositeStep.java:24) at com.agical.rmock.core.strategy.impl.FinallyStep.run(FinallyStep.java:19) at com.agical.rmock.core.expectation.Engine.runStrategy(Engine.java:142)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy7.runStrategy(Unknown Source)
at com.agical.rmock.extension.junit.AbstractStrategyTestCase.runBare(AbstractStrategyTestCase.java:112)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)

com.agical.rmock.core.exception.RMockSystemExceptionInterceptedException:
The following RMock system exceptions were thrown by the system:
com.agical.rmock.core.exception.UnexpectedInvocationException
com.agical.rmock.core.exception.UnexpectedInvocationException

which indicatates a bad exception strategy in your code.
Good advice is that you subclass Javas Exception/RuntimeException/Error to be specific to your code base,
and that you never catch the Java base exceptions, only your own subclasses.
caused by:
com.agical.rmock.core.exception.UnexpectedInvocationException:
UNEXPECTED!
No expectation matched: BeanContext.toString()
-----------------------------------------------------------------
0 expectation(s) have not yet been matched
(indicated by '->' in the listing below)
-----------------------------------------------------------------
Could not generate expectations due to exception!
com.agical.rmock.core.exception.UnexpectedInvocationException:
UNEXPECTED!
No expectation matched: BeanContext.toString()
-----------------------------------------------------------------
0 expectation(s) have not yet been matched
(indicated by '->' in the listing below)
-----------------------------------------------------------------
Could not generate expectations due to exception!
at com.agical.rmock.core.expectation.InvocationVerifier.getException(InvocationVerifier.java:56) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:44) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.toString(<generated>)
at com.agical.rmock.core.match.reference.ToStringReference.describeWith(ToStringReference.java:30) at com.agical.rmock.core.describe.impl.ExpressionDescriberImpl.describe(ExpressionDescriberImpl.java:38) at com.agical.rmock.core.match.constraint.AbstractConstraint.describeWith(AbstractConstraint.java:50) at com.agical.rmock.core.describe.impl.ExpectationDescriberImpl.writeArguments(ExpectationDescriberImpl.java:42) at com.agical.rmock.core.describe.impl.ExpectationDescriberImpl.describe(ExpectationDescriberImpl.java:36) at com.agical.rmock.core.describe.impl.DocumentExpectationsVisitor.visit(DocumentExpectationsVisitor.java:48) at com.agical.rmock.core.expectation.ExpectationImpl.accept(ExpectationImpl.java:97) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.EngineException.generateMessage(EngineException.java:27) at com.agical.rmock.core.expectation.EngineException.<init>(EngineException.java:18) at com.agical.rmock.core.exception.RMockExpectationException.<init>(RMockExpectationException.java:30) at com.agical.rmock.core.exception.UnexpectedInvocationException.<init>(UnexpectedInvocationException.java:19) at com.agical.rmock.core.expectation.InvocationVerifier.getException(InvocationVerifier.java:56) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:44) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.toString(<generated>)
        at java.lang.String.valueOf(String.java:2826)
        at java.lang.StringBuffer.append(StringBuffer.java:219)
at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:37) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.equals(<generated>)
at com.agical.rmock.core.match.reference.ToStringReference.objectEquals(ToStringReference.java:41) at com.agical.rmock.core.match.constraint.EqualsConstraint.passes(EqualsConstraint.java:24) at com.agical.rmock.core.expectation.InvocationExpectationVisitor.matchArguments(InvocationExpectationVisitor.java:66) at com.agical.rmock.core.expectation.InvocationExpectationVisitor.visit(InvocationExpectationVisitor.java:49) at com.agical.rmock.core.expectation.ExpectationImpl.accept(ExpectationImpl.java:97) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:29) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.InterfaceInvocationHandler.invoke(InterfaceInvocationHandler.java:85) at org.apache.openejb.ClusteredRPCContainerMock.getLocations(<generated>) at org.apache.openejb.server.ejbd.BasicClusterableRequestHandler.updateServer(BasicClusterableRequestHandler.java:34) at org.apache.openejb.server.ejbd.BasicClusterableRequestHandlerTest.testUpdateServerWhenRequestHashDiffersFromServerSideHash(BasicClusterableRequestHandlerTest.java:88) at com.agical.rmock.core.strategy.impl.MethodStep.invokeMethod(MethodStep.java:37) at com.agical.rmock.core.strategy.impl.MethodStep.run(MethodStep.java:29) at com.agical.rmock.core.strategy.impl.ExceptionVerifierTestStepDecorator.run(ExceptionVerifierTestStepDecorator.java:22) at com.agical.rmock.core.strategy.impl.CompositeStep.run(CompositeStep.java:24) at com.agical.rmock.core.strategy.impl.FinallyStep.run(FinallyStep.java:19) at com.agical.rmock.core.expectation.Engine.runStrategy(Engine.java:142) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy7.runStrategy(Unknown Source)
at com.agical.rmock.extension.junit.AbstractStrategyTestCase.runBare(AbstractStrategyTestCase.java:112)

at com.agical.rmock.core.exception.manager.ExceptionVerifierImpl.throwExceptionInterceptedException(ExceptionVerifierImpl.java:103) at com.agical.rmock.core.exception.manager.ExceptionVerifierImpl.verifyActualThrowable(ExceptionVerifierImpl.java:69) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy2.verifyActualThrowable(Unknown Source)
at com.agical.rmock.core.strategy.impl.ExceptionVerifierTestStepDecorator.run(ExceptionVerifierTestStepDecorator.java:24) at com.agical.rmock.core.strategy.impl.CompositeStep.run(CompositeStep.java:24) at com.agical.rmock.core.strategy.impl.FinallyStep.run(FinallyStep.java:19) at com.agical.rmock.core.expectation.Engine.runStrategy(Engine.java:142) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy7.runStrategy(Unknown Source)
at com.agical.rmock.extension.junit.AbstractStrategyTestCase.runBare(AbstractStrategyTestCase.java:112)


Testcase: testServerIsNotUpdatedWhenRequestHashEqualsServerSideHash(org.apache.openejb.server.ejbd.BasicClusterableRequestHandlerTest): Caused an ERROR

The following RMock system exceptions were thrown by the system:
com.agical.rmock.core.exception.UnexpectedInvocationException
com.agical.rmock.core.exception.UnexpectedInvocationException

signalling a failing test. One or more of them was caught by your code
which indicatates a bad exception strategy in your code.
Good advice is that you subclass Javas Exception/RuntimeException/Error to be specific to your code base,
and that you never catch the Java base exceptions, only your own subclasses.
caused by:
com.agical.rmock.core.exception.UnexpectedInvocationException:
UNEXPECTED!
No expectation matched: BeanContext.toString()
-----------------------------------------------------------------
0 expectation(s) have not yet been matched
(indicated by '->' in the listing below)
-----------------------------------------------------------------
Could not generate expectations due to exception!
com.agical.rmock.core.exception.UnexpectedInvocationException:
UNEXPECTED!
No expectation matched: BeanContext.toString()
-----------------------------------------------------------------
0 expectation(s) have not yet been matched
(indicated by '->' in the listing below)
-----------------------------------------------------------------
Could not generate expectations due to exception!
at com.agical.rmock.core.expectation.InvocationVerifier.getException(InvocationVerifier.java:56) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:44) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.toString(<generated>)
at com.agical.rmock.core.match.reference.ToStringReference.describeWith(ToStringReference.java:30) at com.agical.rmock.core.describe.impl.ExpressionDescriberImpl.describe(ExpressionDescriberImpl.java:38) at com.agical.rmock.core.match.constraint.AbstractConstraint.describeWith(AbstractConstraint.java:50) at com.agical.rmock.core.describe.impl.ExpectationDescriberImpl.writeArguments(ExpectationDescriberImpl.java:42) at com.agical.rmock.core.describe.impl.ExpectationDescriberImpl.describe(ExpectationDescriberImpl.java:36) at com.agical.rmock.core.describe.impl.DocumentExpectationsVisitor.visit(DocumentExpectationsVisitor.java:48) at com.agical.rmock.core.expectation.ExpectationImpl.accept(ExpectationImpl.java:97) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.EngineException.generateMessage(EngineException.java:27) at com.agical.rmock.core.expectation.EngineException.<init>(EngineException.java:18) at com.agical.rmock.core.exception.RMockExpectationException.<init>(RMockExpectationException.java:30) at com.agical.rmock.core.exception.UnexpectedInvocationException.<init>(UnexpectedInvocationException.java:19) at com.agical.rmock.core.expectation.InvocationVerifier.getException(InvocationVerifier.java:56) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:44) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.toString(<generated>)
        at java.lang.String.valueOf(String.java:2826)
        at java.lang.StringBuffer.append(StringBuffer.java:219)
at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:37) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.equals(<generated>)
at com.agical.rmock.core.match.reference.ToStringReference.objectEquals(ToStringReference.java:41) at com.agical.rmock.core.match.constraint.EqualsConstraint.passes(EqualsConstraint.java:24) at com.agical.rmock.core.expectation.InvocationExpectationVisitor.matchArguments(InvocationExpectationVisitor.java:66) at com.agical.rmock.core.expectation.InvocationExpectationVisitor.visit(InvocationExpectationVisitor.java:49) at com.agical.rmock.core.expectation.ExpectationImpl.accept(ExpectationImpl.java:97) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:29) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.InterfaceInvocationHandler.invoke(InterfaceInvocationHandler.java:85) at org.apache.openejb.ClusteredRPCContainerMock.getLocations(<generated>) at org.apache.openejb.server.ejbd.BasicClusterableRequestHandler.updateServer(BasicClusterableRequestHandler.java:34) at org.apache.openejb.server.ejbd.BasicClusterableRequestHandlerTest.testServerIsNotUpdatedWhenRequestHashEqualsServerSideHash(BasicClusterableRequestHandlerTest.java:106)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.strategy.impl.MethodStep.invokeMethod(MethodStep.java:37) at com.agical.rmock.core.strategy.impl.MethodStep.run(MethodStep.java:29) at com.agical.rmock.core.strategy.impl.ExceptionVerifierTestStepDecorator.run(ExceptionVerifierTestStepDecorator.java:22) at com.agical.rmock.core.strategy.impl.CompositeStep.run(CompositeStep.java:24) at com.agical.rmock.core.strategy.impl.FinallyStep.run(FinallyStep.java:19) at com.agical.rmock.core.expectation.Engine.runStrategy(Engine.java:142)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy7.runStrategy(Unknown Source)
at com.agical.rmock.extension.junit.AbstractStrategyTestCase.runBare(AbstractStrategyTestCase.java:112)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)

com.agical.rmock.core.exception.RMockSystemExceptionInterceptedException:
The following RMock system exceptions were thrown by the system:
com.agical.rmock.core.exception.UnexpectedInvocationException
com.agical.rmock.core.exception.UnexpectedInvocationException

which indicatates a bad exception strategy in your code.
Good advice is that you subclass Javas Exception/RuntimeException/Error to be specific to your code base,
and that you never catch the Java base exceptions, only your own subclasses.
caused by:
com.agical.rmock.core.exception.UnexpectedInvocationException:
UNEXPECTED!
No expectation matched: BeanContext.toString()
-----------------------------------------------------------------
0 expectation(s) have not yet been matched
(indicated by '->' in the listing below)
-----------------------------------------------------------------
Could not generate expectations due to exception!
com.agical.rmock.core.exception.UnexpectedInvocationException:
UNEXPECTED!
No expectation matched: BeanContext.toString()
-----------------------------------------------------------------
0 expectation(s) have not yet been matched
(indicated by '->' in the listing below)
-----------------------------------------------------------------
Could not generate expectations due to exception!
at com.agical.rmock.core.expectation.InvocationVerifier.getException(InvocationVerifier.java:56) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:44) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.toString(<generated>)
at com.agical.rmock.core.match.reference.ToStringReference.describeWith(ToStringReference.java:30) at com.agical.rmock.core.describe.impl.ExpressionDescriberImpl.describe(ExpressionDescriberImpl.java:38) at com.agical.rmock.core.match.constraint.AbstractConstraint.describeWith(AbstractConstraint.java:50) at com.agical.rmock.core.describe.impl.ExpectationDescriberImpl.writeArguments(ExpectationDescriberImpl.java:42) at com.agical.rmock.core.describe.impl.ExpectationDescriberImpl.describe(ExpectationDescriberImpl.java:36) at com.agical.rmock.core.describe.impl.DocumentExpectationsVisitor.visit(DocumentExpectationsVisitor.java:48) at com.agical.rmock.core.expectation.ExpectationImpl.accept(ExpectationImpl.java:97) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.EngineException.generateMessage(EngineException.java:27) at com.agical.rmock.core.expectation.EngineException.<init>(EngineException.java:18) at com.agical.rmock.core.exception.RMockExpectationException.<init>(RMockExpectationException.java:30) at com.agical.rmock.core.exception.UnexpectedInvocationException.<init>(UnexpectedInvocationException.java:19) at com.agical.rmock.core.expectation.InvocationVerifier.getException(InvocationVerifier.java:56) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:44) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.toString(<generated>)
        at java.lang.String.valueOf(String.java:2826)
        at java.lang.StringBuffer.append(StringBuffer.java:219)
at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:37) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.ObjectMockInvocationHandler.intercept(ObjectMockInvocationHandler.java:65)
        at org.apache.openejb.BeanContextMock.equals(<generated>)
at com.agical.rmock.core.match.reference.ToStringReference.objectEquals(ToStringReference.java:41) at com.agical.rmock.core.match.constraint.EqualsConstraint.passes(EqualsConstraint.java:24) at com.agical.rmock.core.expectation.InvocationExpectationVisitor.matchArguments(InvocationExpectationVisitor.java:66) at com.agical.rmock.core.expectation.InvocationExpectationVisitor.visit(InvocationExpectationVisitor.java:49) at com.agical.rmock.core.expectation.ExpectationImpl.accept(ExpectationImpl.java:97) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.section.AnyOrderSection.accept(AnyOrderSection.java:38) at com.agical.rmock.core.expectation.section.OverridableSection.accept(OverridableSection.java:28) at com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:29) at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy0.invocation(Unknown Source)
at com.agical.rmock.extension.cglib.InterfaceInvocationHandler.invoke(InterfaceInvocationHandler.java:85) at org.apache.openejb.ClusteredRPCContainerMock.getLocations(<generated>) at org.apache.openejb.server.ejbd.BasicClusterableRequestHandler.updateServer(BasicClusterableRequestHandler.java:34) at org.apache.openejb.server.ejbd.BasicClusterableRequestHandlerTest.testServerIsNotUpdatedWhenRequestHashEqualsServerSideHash(BasicClusterableRequestHandlerTest.java:106) at com.agical.rmock.core.strategy.impl.MethodStep.invokeMethod(MethodStep.java:37) at com.agical.rmock.core.strategy.impl.MethodStep.run(MethodStep.java:29) at com.agical.rmock.core.strategy.impl.ExceptionVerifierTestStepDecorator.run(ExceptionVerifierTestStepDecorator.java:22) at com.agical.rmock.core.strategy.impl.CompositeStep.run(CompositeStep.java:24) at com.agical.rmock.core.strategy.impl.FinallyStep.run(FinallyStep.java:19) at com.agical.rmock.core.expectation.Engine.runStrategy(Engine.java:142) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy7.runStrategy(Unknown Source)
at com.agical.rmock.extension.junit.AbstractStrategyTestCase.runBare(AbstractStrategyTestCase.java:112)

at com.agical.rmock.core.exception.manager.ExceptionVerifierImpl.throwExceptionInterceptedException(ExceptionVerifierImpl.java:103) at com.agical.rmock.core.exception.manager.ExceptionVerifierImpl.verifyActualThrowable(ExceptionVerifierImpl.java:69) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy2.verifyActualThrowable(Unknown Source)
at com.agical.rmock.core.strategy.impl.ExceptionVerifierTestStepDecorator.run(ExceptionVerifierTestStepDecorator.java:24) at com.agical.rmock.core.strategy.impl.CompositeStep.run(CompositeStep.java:24) at com.agical.rmock.core.strategy.impl.FinallyStep.run(FinallyStep.java:19) at com.agical.rmock.core.strategy.impl.FinallyStep.run(FinallyStep.java:19) at com.agical.rmock.core.expectation.Engine.runStrategy(Engine.java:142) at com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34)
        at $Proxy7.runStrategy(Unknown Source)
at com.agical.rmock.extension.junit.AbstractStrategyTestCase.runBare(AbstractStrategyTestCase.java:112)


Test org.apache.openejb.server.ejbd.BasicClusterableRequestHandlerTest FAILED
test:
Deleting: C:\Users\Andy\AppData\Local\Temp\TEST-org.apache.openejb.server.ejbd.BasicClusterableRequestHandlerTest.xml
BUILD SUCCESSFUL (total time: 19 seconds)

Reply via email to