Removing deprecation warnings

This commit is contained in:
Viktor Klang 2011-06-04 16:00:14 -07:00
parent f9d0b188af
commit 21fe2055f6
2 changed files with 2 additions and 1 deletions

View file

@ -139,6 +139,7 @@ object DeploymentConfig {
case LeastRAM() RouterType.LeastRAM
case LeastMessages RouterType.LeastMessages
case LeastMessages() RouterType.LeastMessages
case c: CustomRouter throw new UnsupportedOperationException("routerTypeFor: " + c)
}
}

View file

@ -47,7 +47,7 @@ class ClusterDeployerSpec extends WordSpec with MustMatchers with BeforeAndAfter
val deployments2 = ClusterDeployer.fetchDeploymentsFromCluster
deployments2.size must equal(1)
deployments2.first must equal(deployments1.first)
deployments2.head must equal(deployments1.head)
}
}