pekko/akka-remote/src/test/scala/akka/remote/classic/RemoteSettingsSpec.scala
Patrik Nordwall 8d69388d0a Deprecate classic remoting classes (#27237)
* Sprinkle deprecated annotation to public classes for classic remoting
* Use right dispatcher setting for a few remoting actors
* New Artery events for QuarantinedEvent, GracefulShutdownQuarantinedEvent
  and ThisActorSystemQuarantinedEvent because old were not good
  and would cause binary compatibility trouble when we remove classic
* silence more deprecation warnings
2019-07-10 14:26:51 +02:00

28 lines
846 B
Scala

/*
* Copyright (C) 2018-2019 Lightbend Inc. <https://www.lightbend.com>
*/
package akka.remote.classic
import akka.remote.RemoteSettings
import com.github.ghik.silencer.silent
import com.typesafe.config.ConfigFactory
import org.scalatest.{ Matchers, WordSpec }
@silent // deprecated
class RemoteSettingsSpec extends WordSpec with Matchers {
"Remote settings" must {
"default akka.remote.classic.log-frame-size-exceeding to off" in {
new RemoteSettings(ConfigFactory.load()).LogFrameSizeExceeding shouldEqual None
}
"parse akka.remote.classic.log-frame-size-exceeding value as bytes" in {
new RemoteSettings(
ConfigFactory
.parseString("akka.remote.classic.log-frame-size-exceeding = 100b")
.withFallback(ConfigFactory.load())).LogFrameSizeExceeding shouldEqual Some(100)
}
}
}