Typed library-extensions were loading the wrong thing (#23701)

* Typed library-extensions were loading the wrong thing

* And that actual fix...

* Formatting
This commit is contained in:
Johan Andrén 2017-09-22 16:07:06 +02:00 committed by Patrik Nordwall
parent ad103db43c
commit 846cfe0416
2 changed files with 4 additions and 5 deletions

View file

@ -6,9 +6,8 @@ package akka.typed
import java.util.concurrent.atomic.AtomicInteger import java.util.concurrent.atomic.AtomicInteger
import com.typesafe.config.{ Config, ConfigFactory } import com.typesafe.config.{ Config, ConfigFactory }
import org.scalatest.concurrent.ScalaFutures
import scala.concurrent.{ Await, Future } import scala.concurrent.Future
class DummyExtension1 extends Extension class DummyExtension1 extends Extension
object DummyExtension1 extends ExtensionId[DummyExtension1] { object DummyExtension1 extends ExtensionId[DummyExtension1] {
@ -131,7 +130,7 @@ class ExtensionsSpec extends TypedSpecSetup {
intercept[RuntimeException] { intercept[RuntimeException] {
withEmptyActorSystem( withEmptyActorSystem(
"ExtensionsSpec07", "ExtensionsSpec07",
Some(ConfigFactory.parseString("""akka.library-extensions += "akka.typed.FailingToLoadExtension$""")) Some(ConfigFactory.parseString("""akka.typed.library-extensions += "akka.typed.FailingToLoadExtension$" """))
) { _ () } ) { _ () }
} }
@ -139,7 +138,7 @@ class ExtensionsSpec extends TypedSpecSetup {
intercept[RuntimeException] { intercept[RuntimeException] {
withEmptyActorSystem( withEmptyActorSystem(
"ExtensionsSpec08", "ExtensionsSpec08",
Some(ConfigFactory.parseString("""akka.library-extensions += "akka.typed.MissingExtension""")) Some(ConfigFactory.parseString("""akka.typed.library-extensions += "akka.typed.MissingExtension" """))
) { _ () } ) { _ () }
} }

View file

@ -26,7 +26,7 @@ akka.typed {
# #
# Should not be set by end user applications in 'application.conf', use the extensions property for that # Should not be set by end user applications in 'application.conf', use the extensions property for that
# #
library-extensions = ${?akka.library-extensions} [] library-extensions = ${?akka.typed.library-extensions} []
} }
# TODO: move these out somewhere else when doing #23632 # TODO: move these out somewhere else when doing #23632