Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rename AkkaSpec.{atTermination => afterTermination}

  • Loading branch information...
commit 6c31d5313e437c50c8ae3aa450953851e87d5a4d 1 parent ff24be7
Roland Kuhn rkuhn authored
Showing with 19 additions and 19 deletions.
  1. +1 −1  akka-cluster/src/multi-jvm/scala/akka/cluster/LargeClusterSpec.scala
  2. +1 −1  akka-docs/rst/modules/code/docs/actor/mailbox/DurableMailboxDocSpec.scala
  3. +1 −1  akka-docs/rst/scala/code/docs/remoting/RemoteDeploymentDocSpec.scala
  4. +2 −2 ...-durable-mailboxes/akka-file-mailbox/src/test/scala/akka/actor/mailbox/filebased/FileBasedMailboxSpec.scala
  5. +2 −2 akka-durable-mailboxes/akka-mailboxes-common/src/test/scala/akka/actor/mailbox/DurableMailboxSpec.scala
  6. +2 −2 akka-remote-tests/src/main/scala/akka/remote/testkit/MultiNodeSpec.scala
  7. +1 −1  akka-remote/src/test/scala/akka/remote/RemoteCommunicationSpec.scala
  8. +1 −1  akka-remote/src/test/scala/akka/remote/RemoteDeathWatchSpec.scala
  9. +1 −1  akka-remote/src/test/scala/akka/remote/RemoteRouterSpec.scala
  10. +1 −1  akka-remote/src/test/scala/akka/remote/RemotingSpec.scala
  11. +1 −1  akka-remote/src/test/scala/akka/remote/Ticket1978CommunicationSpec.scala
  12. +1 −1  akka-remote/src/test/scala/akka/remote/UntrustedSpec.scala
  13. +1 −1  akka-remote/src/test/scala/akka/remote/transport/AkkaProtocolStressTest.scala
  14. +1 −1  akka-remote/src/test/scala/akka/remote/transport/ThrottlerTransportAdapterSpec.scala
  15. +2 −2 akka-testkit/src/test/scala/akka/testkit/AkkaSpec.scala
2  akka-cluster/src/multi-jvm/scala/akka/cluster/LargeClusterSpec.scala
View
@@ -100,7 +100,7 @@ abstract class LargeClusterSpec
*/
override def cluster: Cluster = Cluster(system)
- override def atTermination(): Unit = {
+ override def afterTermination(): Unit = {
systems foreach { _.shutdown }
val shutdownTimeout = 20.seconds
val deadline = Deadline.now + shutdownTimeout
2  akka-docs/rst/modules/code/docs/actor/mailbox/DurableMailboxDocSpec.scala
View
@@ -127,7 +127,7 @@ class MyMailboxSpec extends DurableMailboxSpec("MyStorage", MyMailboxSpec.config
override def atStartup() {
}
- override def atTermination() {
+ override def afterTermination() {
}
"MyMailbox" must {
2  akka-docs/rst/scala/code/docs/remoting/RemoteDeploymentDocSpec.scala
View
@@ -28,7 +28,7 @@ class RemoteDeploymentDocSpec extends AkkaSpec("""
val other = ActorSystem("remote", system.settings.config)
val address = other.asInstanceOf[ExtendedActorSystem].provider.getExternalAddressFor(Address("tcp.akka", "s", "host", 1)).get
- override def atTermination() { other.shutdown() }
+ override def afterTermination() { other.shutdown() }
"demonstrate programmatic deployment" in {
//#deploy
4 ...rable-mailboxes/akka-file-mailbox/src/test/scala/akka/actor/mailbox/filebased/FileBasedMailboxSpec.scala
View
@@ -45,8 +45,8 @@ class FileBasedMailboxSpec extends DurableMailboxSpec("File", FileBasedMailboxSp
super.atStartup()
}
- override def atTermination() {
+ override def afterTermination() {
clean()
- super.atTermination()
+ super.afterTermination()
}
}
4 akka-durable-mailboxes/akka-mailboxes-common/src/test/scala/akka/actor/mailbox/DurableMailboxSpec.scala
View
@@ -84,14 +84,14 @@ abstract class DurableMailboxSpec(system: ActorSystem, val backendName: String)
try system.awaitTermination(5 seconds) catch {
case _: TimeoutException system.log.warning("Failed to stop [{}] within 5 seconds", system.name)
}
- atTermination()
+ afterTermination()
}
/**
* May be implemented in concrete subclass to do additional things once after all
* test cases have been run.
*/
- def atTermination() {}
+ def afterTermination() {}
protected def streamMustContain(in: InputStream, words: String): Unit = {
val output = new Array[Byte](8192)
4 akka-remote-tests/src/main/scala/akka/remote/testkit/MultiNodeSpec.scala
View
@@ -272,7 +272,7 @@ abstract class MultiNodeSpec(val myself: RoleName, _system: ActorSystem, _roles:
if (verifySystemShutdown) throw new RuntimeException(msg)
else system.log.warning(msg)
}
- atTermination()
+ afterTermination()
}
/**
@@ -293,7 +293,7 @@ abstract class MultiNodeSpec(val myself: RoleName, _system: ActorSystem, _roles:
/**
* Override this method to do something when the whole test is terminating.
*/
- protected def atTermination(): Unit = {}
+ protected def afterTermination(): Unit = {}
/**
* All registered roles
2  akka-remote/src/test/scala/akka/remote/RemoteCommunicationSpec.scala
View
@@ -75,7 +75,7 @@ akka {
val here = system.actorFor(RootActorPath(remoteAddr) / "user" / "echo")
- override def atTermination() {
+ override def afterTermination() {
other.shutdown()
}
2  akka-remote/src/test/scala/akka/remote/RemoteDeathWatchSpec.scala
View
@@ -31,7 +31,7 @@ akka {
EventFilter.warning(pattern = "received dead letter.*Disassociate")))
}
- override def atTermination() {
+ override def afterTermination() {
other.shutdown()
}
2  akka-remote/src/test/scala/akka/remote/RemoteRouterSpec.scala
View
@@ -70,7 +70,7 @@ akka.actor.deployment {
}""").withFallback(system.settings.config)
val otherSystem = ActorSystem("remote-sys", conf)
- override def atTermination() {
+ override def afterTermination() {
otherSystem.shutdown()
}
2  akka-remote/src/test/scala/akka/remote/RemotingSpec.scala
View
@@ -114,7 +114,7 @@ class RemotingSpec extends AkkaSpec(RemotingSpec.cfg) with ImplicitSender with D
val here = system.actorFor("test.akka://remote-sys@localhost:12346/user/echo")
- override def atTermination() {
+ override def afterTermination() {
other.shutdown()
AssociationRegistry.clear()
}
2  akka-remote/src/test/scala/akka/remote/Ticket1978CommunicationSpec.scala
View
@@ -125,7 +125,7 @@ abstract class Ticket1978CommunicationSpec(val cipherConfig: CipherConfig) exten
"remote-sys",
ConfigFactory.parseString("akka.remote.netty.port=" + cipherConfig.remotePort).withFallback(system.settings.config))
- override def atTermination() {
+ override def afterTermination() {
if (cipherConfig.runTest) {
other.shutdown()
other.awaitTermination()
2  akka-remote/src/test/scala/akka/remote/UntrustedSpec.scala
View
@@ -37,7 +37,7 @@ akka.loglevel = DEBUG
val target1 = other.actorFor(RootActorPath(addr) / "remote")
val target2 = other.actorFor(RootActorPath(addr) / testActor.path.elements)
- override def atTermination() {
+ override def afterTermination() {
other.shutdown()
}
2  akka-remote/src/test/scala/akka/remote/transport/AkkaProtocolStressTest.scala
View
@@ -96,6 +96,6 @@ class AkkaProtocolStressTest extends AkkaSpec(configA) with ImplicitSender with
EventFilter.warning(pattern = "received dead letter.*(InboundPayload|Disassociate)")))
}
- override def atTermination(): Unit = systemB.shutdown()
+ override def afterTermination(): Unit = systemB.shutdown()
}
2  akka-remote/src/test/scala/akka/remote/transport/ThrottlerTransportAdapterSpec.scala
View
@@ -89,7 +89,7 @@ class ThrottlerTransportAdapterSpec extends AkkaSpec(configA) with ImplicitSende
EventFilter.warning(pattern = "received dead letter.*(InboundPayload|Disassociate)")))
}
- override def atTermination(): Unit = systemB.shutdown()
+ override def afterTermination(): Unit = systemB.shutdown()
}
class ThrottlerTransportAdapterGenericSpec extends GenericTransportSpec(withAkkaProtocol = true) {
4 akka-testkit/src/test/scala/akka/testkit/AkkaSpec.scala
View
@@ -77,14 +77,14 @@ abstract class AkkaSpec(_system: ActorSystem)
system.log.warning("Failed to stop [{}] within 5 seconds", system.name)
println(system.asInstanceOf[ActorSystemImpl].printTree)
}
- atTermination()
+ afterTermination()
}
protected def atStartup() {}
protected def beforeTermination() {}
- protected def atTermination() {}
+ protected def afterTermination() {}
def spawn(dispatcherId: String = Dispatchers.DefaultDispatcherId)(body: Unit): Unit =
Future(body)(system.dispatchers.lookup(dispatcherId))
Please sign in to comment.
Something went wrong with that request. Please try again.