java.lang.AssertionError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • java.lang.AssertionError: Expected: To be empty but: Request violations: - Body does not match schema for action(POST /products) mime-type('application/json') Content: { "name" : "Motorbike", "price" : 150.0, "weight" : 800 } Message: Schema invalid: Unrecognized token 'product': was expecting ('true', 'false' or 'null') at [Source: Inline schema definition; line: 1, column: 8] Response violations: - Body does not match schema for action(POST /products) response(201) mime-type('application/json') Content: { "name" : "Motorbike", "price" : 150.0, "weight" : 800, "id" : "7fa62cdc-ed3f-493c-893b-41beaffd588f" } Message: Schema invalid: Unrecognized token 'product': was expecting ('true', 'false' or 'null') at [Source: Inline schema definition; line: 1, column: 8] at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at be.rombit.romcore.poc.productservice.RestVerticleTest.testAddProductEndpoint(RestVerticleTest.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at io.vertx.ext.unit.junit.VertxUnitRunner.invokeTestMethod(VertxUnitRunner.java:95) at io.vertx.ext.unit.junit.VertxUnitRunner.lambda$invokeExplosively$0(VertxUnitRunner.java:114) at io.vertx.ext.unit.impl.TestContextImpl$Step.run(TestContextImpl.java:122) at io.vertx.ext.unit.impl.TestContextImpl$Step.access$600(TestContextImpl.java:30) at io.vertx.ext.unit.impl.TestContextImpl.run(TestContextImpl.java:221) at io.vertx.ext.unit.junit.VertxUnitRunner.invokeExplosively(VertxUnitRunner.java:130) at io.vertx.ext.unit.junit.VertxUnitRunner.access$000(VertxUnitRunner.java:39) at io.vertx.ext.unit.junit.VertxUnitRunner$1.evaluate(VertxUnitRunner.java:84) at io.vertx.ext.unit.junit.VertxUnitRunner$2.evaluate(VertxUnitRunner.java:196) at io.vertx.ext.unit.junit.VertxUnitRunner$3.evaluate(VertxUnitRunner.java:211) 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.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

Users with the same issue

marcbouvierdav
2 times, last one,
andyglick
3 times, last one,
olle.hallin
1 times, last one,
ivanszkypeter
6 times, last one,
rsprangemeijer
11 times, last one,
13 more bugmates