danshannon / javastravav3api

Strava API v3 implementation written in Java v8
http://danshannon.github.io/javastravav3api/
81 stars 44 forks source link

test.service.impl.activityservice.CreateCommentTest.testCreateInvalidObject failure #174

Closed danshannon closed 7 years ago

danshannon commented 7 years ago

javastrava.api.v3.service.exception.BadRequestException: 400 Bad Request : StravaResponse [message=Bad Request, errors=[StravaAPIError [resource=Comment, field=text, code=is too short (minimum is 1 characters)], StravaAPIError [resource=Comment, field=text, code=can't be blank]]] at javastrava.api.v3.rest.util.RetrofitErrorHandler.handleError(RetrofitErrorHandler.java:115) at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:242) at com.sun.proxy.$Proxy20.createComment(Unknown Source) at javastrava.api.v3.rest.API.createComment(API.java:390) at javastrava.api.v3.service.impl.ActivityServiceImpl.createComment(ActivityServiceImpl.java:147) at javastrava.api.v3.service.Strava.createComment(Strava.java:218) at test.service.standardtests.data.CommentDataUtils.lambda$3(CommentDataUtils.java:99) at test.service.standardtests.CreateMethodTest.lambda$0(CreateMethodTest.java:80) at test.utils.RateLimitedTestRunner.run(RateLimitedTestRunner.java:35) at test.service.standardtests.CreateMethodTest.testCreateInvalidObject(CreateMethodTest.java:72) at test.service.impl.activityservice.CreateCommentTest.testCreateInvalidObject(CreateCommentTest.java:59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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.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:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: retrofit.RetrofitError: 400 Bad Request at retrofit.RetrofitError.httpError(RetrofitError.java:40) at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:388) at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240) ... 32 more