Fix compilation error on Scala 2.12 (#30741)
This commit is contained in:
parent
f12d72effc
commit
e20e55b148
1 changed files with 1 additions and 3 deletions
|
|
@ -14,7 +14,6 @@ import akka.actor.typed.scaladsl._
|
|||
import com.typesafe.config.ConfigFactory
|
||||
import org.slf4j.event.Level
|
||||
|
||||
import scala.jdk.CollectionConverters.MapHasAsJava
|
||||
//#imports
|
||||
import org.scalatest.matchers.should.Matchers
|
||||
import org.scalatest.wordspec.AnyWordSpec
|
||||
|
|
@ -145,8 +144,7 @@ class SyncTestingExampleSpec extends AnyWordSpec with Matchers {
|
|||
|
||||
"has access to the provided config" in {
|
||||
val conf =
|
||||
BehaviorTestKit.ApplicationTestConfig.withFallback(
|
||||
ConfigFactory.parseMap(Map("test.secret" -> "shhhhh").asJava))
|
||||
BehaviorTestKit.ApplicationTestConfig.withFallback(ConfigFactory.parseString("test.secret=shhhhh"))
|
||||
val testKit = BehaviorTestKit(ConfigAware(), "root", conf)
|
||||
val inbox = TestInbox[AnyRef]("Inboxer")
|
||||
testKit.run(ConfigAware.GetCfgString("test.secret", inbox.ref.narrow))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue