- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
scalatest for 2.8 error
Tue, 2010-02-23, 15:28
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.