Removed Scala 2.8 deprecation warnings
This commit is contained in:
parent
3c4efcbd10
commit
e42b1f888d
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue