Removed Scala 2.8 deprecation warnings

This commit is contained in:
Viktor Klang 2010-04-15 16:05:16 +02:00
parent 3c4efcbd10
commit e42b1f888d
2 changed files with 2 additions and 2 deletions

View file

@ -192,7 +192,7 @@ class MongoStorageSpec extends TestCase {
assertTrue(l.map(_._1).contains("3"))
assertTrue(l.map(_._1).contains("4"))
val JsString(str) = l.filter(_._1 == "2").first._2
val JsString(str) = l.filter(_._1 == "2").head._2
assertEquals(str, "peter")
// trying to fetch for a non-existent transaction will throw

View file

@ -50,7 +50,7 @@ class SupervisionBeanDefinitionParserTest extends Spec with ShouldMatchers {
val supervised = builder.getBeanDefinition.getPropertyValues.getPropertyValue("supervised").getValue.asInstanceOf[List[ActiveObjectProperties]]
assert(supervised != null)
expect(3) { supervised.length }
val iterator = supervised.elements
val iterator = supervised.iterator
expect("foo.bar.Foo") { iterator.next.target }
expect("foo.bar.Bar") { iterator.next.target }
expect("foo.bar.MyPojo") { iterator.next.target }