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
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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)

    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