create akka-testkit subproject
- modify AkkaProject.scala - move CallingThreadDispatcher & Spec and TestKit into akka-testkit - update FSMTimingSpec accordingly
This commit is contained in:
parent
337d34eac1
commit
3d28e6ad0f
6 changed files with 29 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
package akka.actor
|
||||
|
||||
import akka.util.TestKit
|
||||
import akka.testkit.TestKit
|
||||
import akka.util.duration._
|
||||
|
||||
import org.scalatest.WordSpec
|
||||
|
|
|
|||
|
|
@ -315,7 +315,3 @@ class ExecutorBasedEventDrivenWorkStealingDispatcherModelTest extends ActorModel
|
|||
def newInterceptedDispatcher = new ExecutorBasedEventDrivenWorkStealingDispatcher("foo") with MessageDispatcherInterceptor
|
||||
}
|
||||
|
||||
class CallingThreadDispatcherTest extends ActorModelSpec {
|
||||
def newInterceptedDispatcher = new CallingThreadDispatcher with MessageDispatcherInterceptor
|
||||
override def dispatcherShouldProcessMessagesInParallel {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package akka.dispatch
|
||||
package akka.testkit
|
||||
|
||||
import akka.actor.ActorRef
|
||||
import akka.dispatch.{MessageDispatcher, MessageInvocation}
|
||||
import java.util.concurrent.locks.ReentrantLock
|
||||
import java.util.LinkedList
|
||||
import java.util.concurrent.RejectedExecutionException
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
package akka.util
|
||||
package akka.testkit
|
||||
|
||||
import akka.actor.{Actor, FSM}
|
||||
import Actor._
|
||||
import duration._
|
||||
import akka.util.Duration
|
||||
import akka.util.duration._
|
||||
|
||||
import java.util.concurrent.{BlockingDeque, LinkedBlockingDeque, TimeUnit}
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package akka.testkit
|
||||
|
||||
import akka.actor.dispatch.ActorModelSpec
|
||||
|
||||
class CallingThreadDispatcherTest extends ActorModelSpec {
|
||||
import ActorModelSpec._
|
||||
def newInterceptedDispatcher = new CallingThreadDispatcher with MessageDispatcherInterceptor
|
||||
override def dispatcherShouldProcessMessagesInParallel {}
|
||||
}
|
||||
|
||||
// vim: set ts=4 sw=4 et:
|
||||
|
|
@ -212,6 +212,7 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) {
|
|||
// -------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
lazy val akka_actor = project("akka-actor", "akka-actor", new AkkaActorProject(_))
|
||||
lazy val akka_testkit = project("akka-testkit", "akka-testkit", new AkkaTestkitProject(_), akka_actor)
|
||||
lazy val akka_stm = project("akka-stm", "akka-stm", new AkkaStmProject(_), akka_actor)
|
||||
lazy val akka_typed_actor = project("akka-typed-actor", "akka-typed-actor", new AkkaTypedActorProject(_), akka_stm)
|
||||
lazy val akka_remote = project("akka-remote", "akka-remote", new AkkaRemoteProject(_), akka_typed_actor)
|
||||
|
|
@ -330,8 +331,19 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) {
|
|||
val junit = Dependencies.junit
|
||||
val scalatest = Dependencies.scalatest
|
||||
val multiverse_test = Dependencies.multiverse_test // StandardLatch
|
||||
|
||||
// some tests depend on testkit, so include that and make sure it's compiled
|
||||
override def testClasspath = super.testClasspath +++ akka_testkit.path("target") / "classes"
|
||||
override def testCompileAction = super.testCompileAction dependsOn (akka_testkit.compile)
|
||||
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------
|
||||
// akka-testkit subproject
|
||||
// -------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
class AkkaTestkitProject(info: ProjectInfo) extends AkkaDefaultProject(info, distPath)
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------
|
||||
// akka-stm subproject
|
||||
// -------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue