java.lang.AssertionError: Unexpected method call prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3", 1003, 1007): prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3"): expected: 1, actual: 0 isClosed(): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke (MockInvocationHandler.java:43) at org.easymock.internal.ObjectMethodsFilter.invoke(O bjectMethodsFilter.java:72)

Spring JIRA | Amit Gadkari | 6 years ago
  1. 0

    Added support for generics for SQLJ template Tested some of the methods using sample application. Please let me the process of testing using EasyMock and junit test cases. I executed junit test cases with stable code from repository on my local environment and I am getting following errors java.lang.AssertionError: Unexpected method call prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3", 1003, 1007): prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3"): expected: 1, actual: 0 isClosed(): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke (MockInvocationHandler.java:43) at org.easymock.internal.ObjectMethodsFilter.invoke(O bjectMethodsFilter.java:72) at $Proxy0.prepareStatement(Unknown Source) at sqlj.runtime.profile.ref.JDBCProfile.prepareStatem ent(JDBCProfile.java:303) at sqlj.runtime.profile.ref.JDBCProfile.getStatement( JDBCProfile.java:203) at sqlj.runtime.profile.ref.JDBCProfile.getStatement( JDBCProfile.java:239) at sqlj.runtime.profile.ref.ProfileWrapper.getStateme nt(ProfileWrapper.java:113) at sqlj.runtime.profile.ref.IterConvertProfile.getSta tement(IterConvertProfile.java:79) at sqlj.runtime.profile.ref.ProfileWrapper.getStateme nt(ProfileWrapper.java:113) at sqlj.runtime.profile.ref.UntypedSelectProfile.getS tatement(UntypedSelectProfile.java:56) at sqlj.runtime.profile.ref.ProfileWrapper.getStateme nt(ProfileWrapper.java:113)

    Spring JIRA | 6 years ago | Amit Gadkari
    java.lang.AssertionError: Unexpected method call prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3", 1003, 1007): prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3"): expected: 1, actual: 0 isClosed(): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke (MockInvocationHandler.java:43) at org.easymock.internal.ObjectMethodsFilter.invoke(O bjectMethodsFilter.java:72)
  2. 0

    Added support for generics for SQLJ template Tested some of the methods using sample application. Please let me the process of testing using EasyMock and junit test cases. I executed junit test cases with stable code from repository on my local environment and I am getting following errors java.lang.AssertionError: Unexpected method call prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3", 1003, 1007): prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3"): expected: 1, actual: 0 isClosed(): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke (MockInvocationHandler.java:43) at org.easymock.internal.ObjectMethodsFilter.invoke(O bjectMethodsFilter.java:72) at $Proxy0.prepareStatement(Unknown Source) at sqlj.runtime.profile.ref.JDBCProfile.prepareStatem ent(JDBCProfile.java:303) at sqlj.runtime.profile.ref.JDBCProfile.getStatement( JDBCProfile.java:203) at sqlj.runtime.profile.ref.JDBCProfile.getStatement( JDBCProfile.java:239) at sqlj.runtime.profile.ref.ProfileWrapper.getStateme nt(ProfileWrapper.java:113) at sqlj.runtime.profile.ref.IterConvertProfile.getSta tement(IterConvertProfile.java:79) at sqlj.runtime.profile.ref.ProfileWrapper.getStateme nt(ProfileWrapper.java:113) at sqlj.runtime.profile.ref.UntypedSelectProfile.getS tatement(UntypedSelectProfile.java:56) at sqlj.runtime.profile.ref.ProfileWrapper.getStateme nt(ProfileWrapper.java:113)

    Spring JIRA | 6 years ago | Amit Gadkari
    java.lang.AssertionError: Unexpected method call prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3", 1003, 1007): prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3"): expected: 1, actual: 0 isClosed(): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke (MockInvocationHandler.java:43) at org.easymock.internal.ObjectMethodsFilter.invoke(O bjectMethodsFilter.java:72)
  3. 0

    EasyMock java.lang.AssertionError: Unexpected method call

    Stack Overflow | 2 years ago | user2359634
    java.lang.AssertionError: Unexpected method call getName(): setName("abc"): expected: 1, actual: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Create a list with EasyMock

    Stack Overflow | 5 months ago | Ad Infinitum
    java.lang.AssertionError: Unexpected method call List.size(): List.get(1): expected: 1, actual: 0 List.size(): expected: 1, actual: 2
  6. 0

    EasyMock 3.2 Readme

    sourceforge.net | 1 year ago
    java.lang.AssertionError: Unexpected method call voteForRemovals([Ljava.lang.String;@9a029e): voteForRemovals([Ljava.lang.String;@2db19d): expected: 1, actual: 0 documentRemoved("Document 1"): expected: 1, actual: 0 documentRemoved("Document 2"): expected: 1, actual: 0

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      Unexpected method call prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3", 1003, 1007): prepareStatement("SELECT AGE FROM CUSTMR WHERE ID = 3"): expected: 1, actual: 0 isClosed(): expected: 1, actual: 0 at org.easymock.internal.MockInvocationHandler.invoke (MockInvocationHandler.java:43) at org.easymock.internal.ObjectMethodsFilter.invoke(O bjectMethodsFilter.java:72)

      at $Proxy0.prepareStatement()
    2. Unknown
      $Proxy0.prepareStatement
      1. $Proxy0.prepareStatement(Unknown Source)
      1 frame