Skip to content

Commit

Permalink
remove JUnitRunner annotation, #16112
Browse files Browse the repository at this point in the history
* it was used for running tests from inside Eclipse,

  but since it caused some trouble we remove it
  • Loading branch information
patriknw authored and ktoso committed Apr 5, 2016
1 parent b3c8551 commit 9f659cf
Show file tree
Hide file tree
Showing 134 changed files with 0 additions and 160 deletions.
Expand Up @@ -33,7 +33,6 @@ object ActorConfigurationVerificationSpec {
"""
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorConfigurationVerificationSpec extends AkkaSpec(ActorConfigurationVerificationSpec.config) with DefaultTimeout with BeforeAndAfterEach {
import ActorConfigurationVerificationSpec._

Expand Down
Expand Up @@ -98,7 +98,6 @@ object ActorCreationPerfSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorCreationPerfSpec extends AkkaSpec("akka.actor.serialize-messages = off") with ImplicitSender
with MetricsKit with BeforeAndAfterAll {

Expand Down
Expand Up @@ -29,7 +29,6 @@ object ActorLifeCycleSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorLifeCycleSpec extends AkkaSpec("akka.actor.serialize-messages=off") with BeforeAndAfterEach with ImplicitSender with DefaultTimeout {
import ActorLifeCycleSpec._

Expand Down
Expand Up @@ -34,7 +34,6 @@ object ActorLookupSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorLookupSpec extends AkkaSpec with DefaultTimeout {
import ActorLookupSpec._

Expand Down
Expand Up @@ -109,7 +109,6 @@ object ActorRefSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorRefSpec extends AkkaSpec with DefaultTimeout {
import akka.actor.ActorRefSpec._

Expand Down
Expand Up @@ -35,7 +35,6 @@ object ActorSelectionSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorSelectionSpec extends AkkaSpec("akka.loglevel=DEBUG") with DefaultTimeout {
import ActorSelectionSpec._

Expand Down
Expand Up @@ -147,7 +147,6 @@ object ActorSystemSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorSystemSpec extends AkkaSpec(ActorSystemSpec.config) with ImplicitSender {

import ActorSystemSpec.FastActor
Expand Down
Expand Up @@ -10,7 +10,6 @@ import scala.concurrent.Await
import akka.util.Timeout
import akka.pattern.{ ask, AskTimeoutException }

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorTimeoutSpec extends AkkaSpec {

val testTimeout = 200.millis.dilated
Expand Down
Expand Up @@ -81,7 +81,6 @@ object ActorWithBoundedStashSpec {
""")
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorWithBoundedStashSpec extends AkkaSpec(ActorWithBoundedStashSpec.testConf) with BeforeAndAfterEach with DefaultTimeout with ImplicitSender {
import ActorWithBoundedStashSpec._

Expand Down
Expand Up @@ -101,7 +101,6 @@ object ActorWithStashSpec {

class JavaActorWithStashSpec extends StashJavaAPI with JUnitSuiteLike

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ActorWithStashSpec extends AkkaSpec(ActorWithStashSpec.testConf) with DefaultTimeout with BeforeAndAfterEach {
import ActorWithStashSpec._

Expand Down
Expand Up @@ -11,7 +11,6 @@ import akka.testkit._
import scala.concurrent.duration._
import scala.concurrent.Await

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class LocalDeathWatchSpec extends AkkaSpec with ImplicitSender with DefaultTimeout with DeathWatchSpec

object DeathWatchSpec {
Expand Down
Expand Up @@ -69,7 +69,6 @@ object DeployerSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class DeployerSpec extends AkkaSpec(DeployerSpec.deployerConf) {
"A Deployer" must {

Expand Down
Expand Up @@ -98,7 +98,6 @@ object FSMActorSpec {
final case class CodeState(soFar: String, code: String)
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class FSMActorSpec extends AkkaSpec(Map("akka.actor.debug.fsm" -> true)) with ImplicitSender {
import FSMActorSpec._

Expand Down
Expand Up @@ -9,7 +9,6 @@ import language.postfixOps
import akka.testkit._
import scala.concurrent.duration._

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class FSMTimingSpec extends AkkaSpec with ImplicitSender {
import FSMTimingSpec._
import FSM._
Expand Down
Expand Up @@ -61,7 +61,6 @@ object FSMTransitionSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class FSMTransitionSpec extends AkkaSpec with ImplicitSender {

import FSMTransitionSpec._
Expand Down
Expand Up @@ -27,7 +27,6 @@ object ForwardActorSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ForwardActorSpec extends AkkaSpec {
import ForwardActorSpec._
implicit val ec = system.dispatcher
Expand Down
Expand Up @@ -35,7 +35,6 @@ object FunctionRefSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class FunctionRefSpec extends AkkaSpec with ImplicitSender {
import FunctionRefSpec._

Expand Down
Expand Up @@ -12,7 +12,6 @@ object HotSwapSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class HotSwapSpec extends AkkaSpec with ImplicitSender {
import HotSwapSpec.Becomer

Expand Down
Expand Up @@ -30,7 +30,6 @@ object LocalActorRefProviderSpec {
"""
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class LocalActorRefProviderSpec extends AkkaSpec(LocalActorRefProviderSpec.config) {
"An LocalActorRefProvider" must {

Expand Down
Expand Up @@ -25,7 +25,6 @@ object PropsCreationSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class PropsCreationSpec extends AkkaSpec("akka.actor.serialize-creators = on") {

import akka.actor.PropsCreationSpec._
Expand Down
Expand Up @@ -16,7 +16,6 @@ object ReceiveTimeoutSpec {
case object TransperentTick extends NotInfluenceReceiveTimeout
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ReceiveTimeoutSpec extends AkkaSpec {
import ReceiveTimeoutSpec._

Expand Down
Expand Up @@ -16,7 +16,6 @@ import akka.testkit.TestLatch
import scala.concurrent.duration._
import akka.pattern.ask

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class RestartStrategySpec extends AkkaSpec("akka.actor.serialize-messages = off") with DefaultTimeout {

override def atStartup {
Expand Down
Expand Up @@ -718,7 +718,6 @@ object SupervisorHierarchySpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class SupervisorHierarchySpec extends AkkaSpec(SupervisorHierarchySpec.config) with DefaultTimeout with ImplicitSender {
import SupervisorHierarchySpec._

Expand Down
Expand Up @@ -26,7 +26,6 @@ object SupervisorMiscSpec {
"""
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class SupervisorMiscSpec extends AkkaSpec(SupervisorMiscSpec.config) with DefaultTimeout {

"A Supervisor" must {
Expand Down
Expand Up @@ -101,7 +101,6 @@ error-mailbox {
""")
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class SupervisorSpec extends AkkaSpec(SupervisorSpec.config) with BeforeAndAfterEach with ImplicitSender with DefaultTimeout {

import SupervisorSpec._
Expand Down
Expand Up @@ -10,7 +10,6 @@ import scala.concurrent.duration._
import akka.testkit.{ EventFilter, AkkaSpec, ImplicitSender, DefaultTimeout }
import akka.pattern.ask

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class SupervisorTreeSpec extends AkkaSpec("akka.actor.serialize-messages = off") with ImplicitSender with DefaultTimeout {

"In a 3 levels deep supervisor tree (linked in the constructor) we" must {
Expand Down
Expand Up @@ -14,7 +14,6 @@ import scala.concurrent.Await
import akka.pattern.ask
import scala.concurrent.duration._

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class Ticket669Spec extends AkkaSpec with BeforeAndAfterAll with ImplicitSender with DefaultTimeout {
import Ticket669Spec._

Expand Down
Expand Up @@ -202,7 +202,6 @@ object TypedActorSpec {
class FI extends F { def f(pow: Boolean): Int = if (pow) throw new IllegalStateException("expected") else 1 }
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class TypedActorSpec extends AkkaSpec(TypedActorSpec.config)
with BeforeAndAfterEach with BeforeAndAfterAll with DefaultTimeout {

Expand Down Expand Up @@ -513,7 +512,6 @@ class TypedActorSpec extends AkkaSpec(TypedActorSpec.config)
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class TypedActorRouterSpec extends AkkaSpec(TypedActorSpec.config)
with BeforeAndAfterEach with BeforeAndAfterAll with DefaultTimeout {

Expand Down
Expand Up @@ -540,7 +540,6 @@ object DispatcherModelSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class DispatcherModelSpec extends ActorModelSpec(DispatcherModelSpec.config) {
import ActorModelSpec._

Expand Down Expand Up @@ -614,7 +613,6 @@ object BalancingDispatcherModelSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class BalancingDispatcherModelSpec extends ActorModelSpec(BalancingDispatcherModelSpec.config) {
import ActorModelSpec._

Expand Down
Expand Up @@ -15,7 +15,6 @@ object BalancingDispatcherSpec {
"""
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class BalancingDispatcherSpec extends AkkaSpec(BalancingDispatcherSpec.config) {

val delayableActorDispatcher = "pooled-dispatcher"
Expand Down
Expand Up @@ -49,7 +49,6 @@ object DispatcherActorSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class DispatcherActorSpec extends AkkaSpec(DispatcherActorSpec.config) with DefaultTimeout {
import DispatcherActorSpec._

Expand Down
Expand Up @@ -7,7 +7,6 @@ import akka.testkit.AkkaSpec
/**
* Tests the behavior of the executor based event driven dispatcher when multiple actors are being dispatched on it.
*/
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class DispatcherActorsSpec extends AkkaSpec {
class SlowActor(finishedCounter: CountDownLatch) extends Actor {

Expand Down
Expand Up @@ -87,7 +87,6 @@ object DispatchersSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class DispatchersSpec extends AkkaSpec(DispatchersSpec.config) with ImplicitSender {
import DispatchersSpec._
val df = system.dispatchers
Expand Down
Expand Up @@ -25,7 +25,6 @@ object PinnedActorSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class PinnedActorSpec extends AkkaSpec(PinnedActorSpec.config) with BeforeAndAfterEach with DefaultTimeout {
import PinnedActorSpec._

Expand Down
Expand Up @@ -6,7 +6,6 @@ import akka.routing._
import java.util.concurrent.atomic.AtomicInteger
import scala.concurrent.Await

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ListenerSpec extends AkkaSpec {

"Listener" must {
Expand Down
Expand Up @@ -14,7 +14,6 @@ import com.typesafe.config.ConfigFactory
import scala.concurrent.duration._
import akka.event.DefaultLoggingFilter

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ConfigSpec extends AkkaSpec(ConfigFactory.defaultReference(ActorSystem.findClassLoader())) {

"The default configuration file (i.e. reference.conf)" must {
Expand Down
Expand Up @@ -16,7 +16,6 @@ object ControlAwareDispatcherSpec {
case object ImportantMessage extends ControlMessage
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ControlAwareDispatcherSpec extends AkkaSpec(ControlAwareDispatcherSpec.config) with DefaultTimeout {
import ControlAwareDispatcherSpec.ImportantMessage

Expand Down
Expand Up @@ -12,7 +12,6 @@ import akka.actor.Actor
import akka.testkit.TestProbe
import akka.testkit.CallingThreadDispatcher

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class ExecutionContextSpec extends AkkaSpec with DefaultTimeout {

"An ExecutionContext" must {
Expand Down
Expand Up @@ -76,7 +76,6 @@ object FutureSpec {

class JavaFutureSpec extends JavaFutureTests with JUnitSuiteLike

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class FutureSpec extends AkkaSpec with Checkers with BeforeAndAfterAll with DefaultTimeout {
import FutureSpec._
implicit val ec: ExecutionContext = system.dispatcher
Expand Down
Expand Up @@ -13,7 +13,6 @@ import akka.testkit.{ EventFilter, AkkaSpec }
import scala.concurrent.{ Future, Await, ExecutionContext }
import scala.concurrent.duration._

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
abstract class MailboxSpec extends AkkaSpec with BeforeAndAfterAll with BeforeAndAfterEach {
def name: String

Expand Down Expand Up @@ -231,7 +230,6 @@ object CustomMailboxSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class CustomMailboxSpec extends AkkaSpec(CustomMailboxSpec.config) {
"Dispatcher configuration" must {
"support custom mailboxType" in {
Expand Down
Expand Up @@ -30,7 +30,6 @@ object PriorityDispatcherSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class PriorityDispatcherSpec extends AkkaSpec(PriorityDispatcherSpec.config) with DefaultTimeout {

"A PriorityDispatcher" must {
Expand Down
Expand Up @@ -35,7 +35,6 @@ object StablePriorityDispatcherSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class StablePriorityDispatcherSpec extends AkkaSpec(StablePriorityDispatcherSpec.config) with DefaultTimeout {

"A StablePriorityDispatcher" must {
Expand Down
Expand Up @@ -24,7 +24,6 @@ object AddressTerminatedTopicBenchSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class AddressTerminatedTopicBenchSpec extends AkkaSpec("akka.loglevel=INFO") {
import AddressTerminatedTopicBenchSpec._

Expand Down
Expand Up @@ -22,7 +22,6 @@ object EventBusSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
abstract class EventBusSpec(busName: String, conf: Config = ConfigFactory.empty()) extends AkkaSpec(conf) with BeforeAndAfterEach {
type BusType <: EventBus

Expand Down
Expand Up @@ -66,7 +66,6 @@ object EventStreamSpec {
class CCATBT extends CC with ATT with BTT
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class EventStreamSpec extends AkkaSpec(EventStreamSpec.config) {

import EventStreamSpec._
Expand Down
Expand Up @@ -133,7 +133,6 @@ object LoggerSpec {

}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class LoggerSpec extends WordSpec with Matchers {

import LoggerSpec._
Expand Down
Expand Up @@ -21,7 +21,6 @@ object LoggingReceiveSpec {
}
}

@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class LoggingReceiveSpec extends WordSpec with BeforeAndAfterAll {

import LoggingReceiveSpec._
Expand Down

0 comments on commit 9f659cf

Please sign in to comment.