Vishwas Babu A J created FINERACT-709:
-----------------------------------------

             Summary: Fix failure of Integration test 
testLoanCharges_DISBURSEMENT_FEE()
                 Key: FINERACT-709
                 URL: https://issues.apache.org/jira/browse/FINERACT-709
             Project: Apache Fineract
          Issue Type: Sub-task
            Reporter: Vishwas Babu A J
            Assignee: Vishwas Babu A J


This test case currently fails with the error
{noformat}
java.lang.AssertionError: 1 expectation failed. Expected status code <200> 
doesn't match actual status code <403>. at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at 
org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
 at 
org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
 at 
org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81)
 at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
 at 
com.jayway.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:577)
 at 
com.jayway.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown
 Source) at 
com.jayway.restassured.internal.RequestSpecificationImpl.invokeFilterChain(RequestSpecificationImpl.groovy:927)
 at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:497) at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at 
groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) at 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207) at 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) at 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:807) at 
com.jayway.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
 at 
org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)
 at 
org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55)
 at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
 at 
com.jayway.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1347)
 at 
com.jayway.restassured.internal.RequestSpecificationImpl.this$2$applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy)
 at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:497) at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at 
groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) at 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207) at 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) at 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:807) at 
com.jayway.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
 at 
org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)
 at 
org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:55)
 at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
 at 
com.jayway.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:155)
 at 
com.jayway.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy)
 at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:497) at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at 
groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) at 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207) at 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016) at 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:807) at 
com.jayway.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
 at 
org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:45)
 at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
 at 
com.jayway.restassured.internal.ResponseSpecificationImpl.post(ResponseSpecificationImpl.groovy:270)
 at 
com.jayway.restassured.internal.ResponseSpecificationImpl.post(ResponseSpecificationImpl.groovy)
 at 
org.apache.fineract.integrationtests.common.Utils.performServerPost(Utils.java:96)
 at 
org.apache.fineract.integrationtests.common.loans.LoanTransactionHelper.addChargesForLoan(LoanTransactionHelper.java:256)
 at 
org.apache.fineract.integrationtests.ClientLoanIntegrationTest.testLoanCharges_DISBURSEMENT_FEE(ClientLoanIntegrationTest.java:152)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:497) at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
 at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
 at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) 
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
 at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at 
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at 
org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at 
org.junit.runners.ParentRunner.run(ParentRunner.java:363) at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)
 at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41) 
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)
 at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
 at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
 at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to