Upgraded to Scala RC2 version of ScalaTest, but still some problems

This commit is contained in:
Jonas Bonér 2010-05-21 07:32:42 +02:00
parent 4a26591b18
commit f6ec562fa6
2 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,23 @@
package se.scalablesolutions.akka.actor
import org.scalatest.Suite
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatest.matchers.MustMatchers
import org.junit.{Before, After, Test}
import java.util.concurrent.{ CountDownLatch, TimeUnit }
@RunWith(classOf[JUnitRunner])
class ActorUtilTest extends junit.framework.TestCase with Suite with MustMatchers {
import Actor._
@Test def testSpawn = {
val latch = new CountDownLatch(1)
spawn {
latch.countDown
}
val done = latch.await(5,TimeUnit.SECONDS)
done must be (true)
}
}

View file

@ -17,7 +17,7 @@ class AkkaParent(info: ProjectInfo) extends DefaultProject(info) {
val ATMO_VERSION = "0.5.4"
val CASSANDRA_VERSION = "0.5.0"
val LIFT_VERSION = "2.0-scala280-SNAPSHOT"
val SCALATEST_VERSION = "1.0.1-for-scala-2.8.0.Beta1-with-test-interfaces-0.3-SNAPSHOT"
val SCALATEST_VERSION = "1.2-for-scala-2.8.0.RC2-SNAPSHOT"
// ------------------------------------------------------------
lazy val deployPath = info.projectPath / "deploy"