org.scalatest.exceptions.TestCanceledException: The config map entry with key "org.scalatestplus.play.app" had an unexpected (runtime) type: class play.api.DefaultApplication. The expected (runtime) type was: interface play.api.Application. The value was: play.api.DefaultApplication@39ab59f8.

GitHub | marcospereira | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 61#242626797

    GitHub | 7 months ago | marcospereira
    org.scalatest.exceptions.TestCanceledException: The config map entry with key "org.scalatestplus.play.app" had an unexpected (runtime) type: class play.api.DefaultApplication. The expected (runtime) type was: interface play.api.Application. The value was: play.api.DefaultApplication@39ab59f8.

    Root Cause Analysis

    1. org.scalatest.exceptions.TestCanceledException

      The config map entry with key "org.scalatestplus.play.app" had an unexpected (runtime) type: class play.api.DefaultApplication. The expected (runtime) type was: interface play.api.Application. The value was: play.api.DefaultApplication@39ab59f8.

      at org.scalatest.ConfigMap.getRequired()
    2. scalatest
      ConfigMap.getOptional
      1. org.scalatest.ConfigMap.getRequired(ConfigMap.scala:186)
      2. org.scalatest.ConfigMap.getOptional(ConfigMap.scala:129)
      2 frames
    3. org.scalatestplus.play
      ConfiguredAppSpec$NestedSuite.run
      1. org.scalatestplus.play.ConfiguredApp$class.run(ConfiguredApp.scala:91)
      2. org.scalatestplus.play.ConfiguredAppSpec$NestedSuite.run(ConfiguredAppSpec.scala:28)
      2 frames
    4. scalatest
      Suite$$anonfun$runNestedSuites$1.apply
      1. org.scalatest.Suite$class.callExecuteOnSuite$1(Suite.scala:1210)
      2. org.scalatest.Suite$$anonfun$runNestedSuites$1.apply(Suite.scala:1257)
      3. org.scalatest.Suite$$anonfun$runNestedSuites$1.apply(Suite.scala:1255)
      3 frames
    5. Scala
      ArrayOps$ofRef.foreach
      1. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      2. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
      2 frames
    6. scalatest
      Suite$class.runNestedSuites
      1. org.scalatest.Suite$class.runNestedSuites(Suite.scala:1255)
      1 frame
    7. org.scalatestplus.play
      ConfiguredAppSpec.org$scalatest$SequentialNestedSuiteExecution$$super$runNestedSuites
      1. org.scalatestplus.play.ConfiguredAppSpec.org$scalatest$SequentialNestedSuiteExecution$$super$runNestedSuites(ConfiguredAppSpec.scala:26)
      1 frame
    8. scalatest
      SequentialNestedSuiteExecution$class.runNestedSuites
      1. org.scalatest.SequentialNestedSuiteExecution$class.runNestedSuites(SequentialNestedSuiteExecution.scala:42)
      1 frame
    9. org.scalatestplus.play
      ConfiguredAppSpec.runNestedSuites
      1. org.scalatestplus.play.ConfiguredAppSpec.runNestedSuites(ConfiguredAppSpec.scala:26)
      1 frame
    10. scalatest
      WordSpecLike$class.run
      1. org.scalatest.Suite$class.run(Suite.scala:1144)
      2. org.scalatest.WordSpec.org$scalatest$WordSpecLike$$super$run(WordSpec.scala:1881)
      3. org.scalatest.WordSpecLike$$anonfun$run$1.apply(WordSpecLike.scala:1192)
      4. org.scalatest.WordSpecLike$$anonfun$run$1.apply(WordSpecLike.scala:1192)
      5. org.scalatest.SuperEngine.runImpl(Engine.scala:521)
      6. org.scalatest.WordSpecLike$class.run(WordSpecLike.scala:1192)
      6 frames
    11. org.scalatestplus.play
      ConfiguredAppSpec.run
      1. org.scalatestplus.play.ConfiguredAppSpec.org$scalatestplus$play$BaseOneAppPerSuite$$super$run(ConfiguredAppSpec.scala:26)
      2. org.scalatestplus.play.BaseOneAppPerSuite$class.run(BaseOneAppPerSuite.scala:46)
      3. org.scalatestplus.play.ConfiguredAppSpec.run(ConfiguredAppSpec.scala:26)
      3 frames