Note that there are some explanatory texts on larger screens.

plurals
  1. POScalaCheck, JUnit end with NoSuchMethod-exception in the default generator
    text
    copied!<p>I have trouble running my scalachecks from within maven. E.g. the following small snipped</p> <pre><code>@RunWith(classOf[JUnitRunner]) final class MyTest extends FunSuite with Checkers { test("t2") { Prop.forAll( (a: String, b: String) =&gt; (a+b).startsWith(a) ) } } </code></pre> <p>ends up dumping with the following stack:</p> <pre><code>java.lang.NoSuchMethodError: scala.runtime.IntRef.zero()Lscala/runtime/IntRef; at org.scalacheck.Gen$.frequency(Gen.scala) at org.scalacheck.Gen$.chooseNum(Gen.scala:455) at org.scalacheck.Arbitrary$$anonfun$arbInt$1.apply(Arbitrary.scala:86) at org.scalacheck.Arbitrary$$anonfun$arbInt$1.apply(Arbitrary.scala:86) at org.scalacheck.Arbitrary$$anon$2.arbitrary$lzycompute(Arbitrary.scala:65) at org.scalacheck.Arbitrary$$anon$2.arbitrary(Arbitrary.scala:65) at org.scalacheck.Arbitrary$.arbitrary(Arbitrary.scala:69) at org.scalacheck.Arbitrary$$anonfun$arbContainer$1.apply(Arbitrary.scala:299) at org.scalacheck.Arbitrary$$anonfun$arbContainer$1.apply(Arbitrary.scala:299) at org.scalacheck.Arbitrary$$anon$2.arbitrary$lzycompute(Arbitrary.scala:65) at org.scalacheck.Arbitrary$$anon$2.arbitrary(Arbitrary.scala:65) at org.scalacheck.Arbitrary$.arbitrary(Arbitrary.scala:69) at org.scalacheck.Prop$.forAll(Prop.scala:726) at org.scalacheck.Prop$.forAll(Prop.scala:734) </code></pre> <p>I bet this is only a very small thing to solve but I couldn't find a full example of running scala-check inside scalatest with a junit-runner.</p> <p>thanks and regards</p> <p>markus</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload