Fixing ticket #450, lifeCycle = Permanent => boilerplate reduction

This commit is contained in:
Viktor Klang 2010-10-04 11:18:10 +02:00
parent a21077707e
commit ea5f21457a
27 changed files with 103 additions and 112 deletions

View file

@ -483,7 +483,7 @@ class RemoteSupervisorSpec extends JUnitSuite {
RestartStrategy(AllForOne, 3, 100, List(classOf[Exception])),
Supervise(
pingpong1,
LifeCycle(Permanent))
Permanent)
:: Nil))
factory.newInstance
@ -499,7 +499,7 @@ class RemoteSupervisorSpec extends JUnitSuite {
RestartStrategy(OneForOne, 3, 100, List(classOf[Exception])),
Supervise(
pingpong1,
LifeCycle(Permanent))
Permanent)
:: Nil))
factory.newInstance
}
@ -520,15 +520,15 @@ class RemoteSupervisorSpec extends JUnitSuite {
RestartStrategy(AllForOne, 3, 100, List(classOf[Exception])),
Supervise(
pingpong1,
LifeCycle(Permanent))
Permanent)
::
Supervise(
pingpong2,
LifeCycle(Permanent))
Permanent)
::
Supervise(
pingpong3,
LifeCycle(Permanent))
Permanent)
:: Nil))
factory.newInstance
}
@ -551,15 +551,15 @@ class RemoteSupervisorSpec extends JUnitSuite {
RestartStrategy(OneForOne, 3, 100, List(classOf[Exception])),
Supervise(
pingpong1,
LifeCycle(Permanent))
Permanent)
::
Supervise(
pingpong2,
LifeCycle(Permanent))
Permanent)
::
Supervise(
pingpong3,
LifeCycle(Permanent))
Permanent)
:: Nil))
factory.newInstance
}
@ -580,17 +580,17 @@ class RemoteSupervisorSpec extends JUnitSuite {
RestartStrategy(AllForOne, 3, 100, List(classOf[Exception])),
Supervise(
pingpong1,
LifeCycle(Permanent))
Permanent)
::
SupervisorConfig(
RestartStrategy(AllForOne, 3, 100, List(classOf[Exception])),
Supervise(
pingpong2,
LifeCycle(Permanent))
Permanent)
::
Supervise(
pingpong3,
LifeCycle(Permanent))
Permanent)
:: Nil)
:: Nil))
factory.newInstance