java.lang.AssertionError

Property shouldHold falsified. Original failure message: [ Expected: a value less than <1> but: <1353697724> was greater than <1>] Original args: [Foo[1353697724]] Shrink failure message: [ Expected: a value less than <1> but: <1> was equal to <1>] Args shrunken to: [Foo[1]] Seeds: [4258792209962850693]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web361

  • via GitHub by pholser
    ,
  • via GitHub by pholser
    ,
  • via GitHub by pholser
    ,
  • Stack trace

    • java.lang.AssertionError: Property shouldHold falsified. Original failure message: [ Expected: a value less than <1> but: <1353697724> was greater than <1>] Original args: [Foo[1353697724]] Shrink failure message: [ Expected: a value less than <1> but: <1> was equal to <1>] Args shrunken to: [Foo[1]] Seeds: [4258792209962850693] 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 com.pholser.junit.quickcheck.ShrinkingTest$ShrinkingCompletely.shouldHold(ShrinkingTest.java:56) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) 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 com.pholser.junit.quickcheck.runner.PropertyVerifier$2.evaluate(PropertyVerifier.java:104) at com.pholser.junit.quickcheck.runner.PropertyVerifier$1.evaluate(PropertyVerifier.java:76) at com.pholser.junit.quickcheck.runner.PropertyVerifier.verify(PropertyVerifier.java:68) at com.pholser.junit.quickcheck.runner.ShrinkNode.verifyProperty(ShrinkNode.java:95) at com.pholser.junit.quickcheck.runner.Shrinker.shrink(Shrinker.java:82) at com.pholser.junit.quickcheck.runner.PropertyStatement.shrink(PropertyStatement.java:158) at com.pholser.junit.quickcheck.runner.PropertyStatement.lambda$property$7(PropertyStatement.java:132) at com.pholser.junit.quickcheck.runner.PropertyVerifier$1.evaluate(PropertyVerifier.java:86) at com.pholser.junit.quickcheck.runner.PropertyVerifier.verify(PropertyVerifier.java:68) at com.pholser.junit.quickcheck.runner.PropertyStatement.verifyProperty(PropertyStatement.java:108) at com.pholser.junit.quickcheck.runner.PropertyStatement.evaluate(PropertyStatement.java:92) 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:119) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74) Caused by: java.lang.AssertionError: Expected: a value less than <1> but: <1353697724> was greater than <1> 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 com.pholser.junit.quickcheck.ShrinkingTest$ShrinkingCompletely.shouldHold(ShrinkingTest.java:56) 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 com.pholser.junit.quickcheck.runner.PropertyVerifier$2.evaluate(PropertyVerifier.java:104) at com.pholser.junit.quickcheck.runner.PropertyVerifier$1.evaluate(PropertyVerifier.java:76) ... 17 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    olle.hallinolle.hallin
    2 times, last one
    marcbouvierdavmarcbouvierdav
    2 times, last one
    andyglickandyglick
    3 times, last one
    ivanszkypeterivanszkypeter
    6 times, last one
    rsprangemeijerrsprangemeijer
    11 times, last one
    14 more bugmates