This page is no longer maintained — Please continue to the home page at www.scala-lang.org

scalatest for 2.8 error

No replies
Dmitry Grigoriev
Joined: 2009-07-12,
User offline. Last seen 42 years 45 weeks ago.

Hello,

Today I tried to use scalatest 1.0-for-scala-2.8.0-SNAPSHOT with Scala
both 2.8.0.Beta1 and 2.8.0-SNAPSHOT.

Got error:

[INFO] Compiling 1 source files to
/home/dimgel/work/scala28/lib.web/lib.jar/target/test-classes at
1266887670203
[ERROR] error: class file needed by Matchers is missing.

[INFO] reference type Throwable of object Predef refers to nonexisting
symbol.
[ERROR] one error found

Source:

package ru.dimgel.lib.web.state

import org.scalatest.FlatSpec
import org.scalatest.matchers.ShouldMatchers

object UUIDSpec extends FlatSpec with ShouldMatchers {
import java.util.UUID

"java.util.UUID" should "Create 1000 unique values at once" in {
val set = Set() ++
{ for (i <- 1 to 1000) yield UUID.randomUUID.toString }
set.size should equal(1000)
}
}

Please help how to make it working.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland