java.lang.IllegalStateException: missing behavior definition for the preceding method call: DynamoHttpServletRequest.getParameter("salutation") Usage is: expect(a.foo()).andXXX()

Google Groups | Santhosh Kumar | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    EasyMockError

    Google Groups | 2 years ago | Santhosh Kumar
    java.lang.IllegalStateException: missing behavior definition for the preceding method call: DynamoHttpServletRequest.getParameter("salutation") Usage is: expect(a.foo()).andXXX()
  2. 0

    unit test in grails: "missing behavior definition for the preceding method call getMetaClass()"

    Stack Overflow | 3 years ago | OutOfBound
    java.lang.IllegalStateException: missing behavior definition for the preceding method call getMetaClass()

    3 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalStateException

      missing behavior definition for the preceding method call: DynamoHttpServletRequest.getParameter("salutation") Usage is: expect(a.foo()).andXXX()

      at org.easymock.internal.MockInvocationHandler.invoke()
    2. EasyMock
      ClassProxyFactory$MockMethodInterceptor.intercept
      1. org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:42)
      2. org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:85)
      3. org.easymock.internal.ClassProxyFactory$MockMethodInterceptor.intercept(ClassProxyFactory.java:94)
      3 frames
    3. atg.servlet
      DynamoHttpServletRequest$$EnhancerByCGLIB$$8c76eb09.getParameter
      1. atg.servlet.DynamoHttpServletRequest$$EnhancerByCGLIB$$8c76eb09.getParameter(<generated>)
      1 frame
    4. de.dpag.efiliale
      SCRegisterHandlerTest.testHandleCreateCustomer
      1. de.dpag.efiliale.servicecenter.SCRegisterHandler.createCustomer(SCRegisterHandler.java:533)
      2. de.dpag.efiliale.servicecenter.SCRegisterHandler.handleCreateCustomer(SCRegisterHandler.java:768)
      3. de.dpag.efiliale.servicecenter.SCRegisterHandlerTest.testHandleCreateCustomer(SCRegisterHandlerTest.java:163)
      3 frames
    5. JUnit
      TestSetup.run
      1. junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      2. junit.extensions.TestSetup$1.protect(TestSetup.java:23)
      3. junit.extensions.TestSetup.run(TestSetup.java:27)
      3 frames