Skip to content

Commit

Permalink
Issue 10 - Fix wicket-scala-sample in master branch due to upstream c…
Browse files Browse the repository at this point in the history
…hange

Upgrade to Scala 2.8.1 (latest stable)
Upgrade the testing libraries to their latest stable version compiled against Scala 2.8.1
Now the compile phase passes for all modules but the tests cannot start.
  • Loading branch information
martin-g committed Feb 10, 2011
1 parent c2c8cee commit fa34e5d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions jdk-1.5-parent/scala-extensions-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.7.5</version>
<version>2.8.1</version>
</dependency>
<dependency>
<groupId>org.scala-tools.testing</groupId>
<groupId>org.scalatest</groupId>
<artifactId>scalatest</artifactId>
<version>0.9.5</version>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
Expand Down
6 changes: 3 additions & 3 deletions jdk-1.5-parent/scala-extensions-parent/wicket-scala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<dependencies>
<dependency>
<groupId>org.scala-tools.testing</groupId>
<artifactId>specs</artifactId>
<version>1.5.0</version>
<artifactId>specs_2.8.1</artifactId>
<version>1.6.7.2</version>
</dependency>
</dependencies>

</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SForm[T](id:String, model:IModel[T] , onSubmitFunc: ⇒ Unit) extends Form

}

class SLabel(id:String, gtr: String) extends Label[String](id, new Fodel(gtr, null)) {
class SLabel(id:String, gtr: String) extends Label(id, new Fodel(gtr, null)) {

def print = println(gtr)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.wicketstuff.scala

import org.apache.wicket.markup.html.basic.Label
import org.apache.wicket.model.PropertyModel
import org.apache.wicket.model.{Model,PropertyModel}

import org.specs._
import org.specs.runner._
Expand Down Expand Up @@ -67,7 +67,7 @@ class ScalaWicketSpecs extends Specification with JUnit with ScalaTest with Scal
"allow us to create a ListView out of a Scala List" in {
import org.apache.wicket.markup.html.list._
val wt = new WicketTester
val lv = new ListView[Int]("myListView", List(1,2,3)) {
val lv = new ListView[Int]("myListView", Model.ofList(List(1,2,3))) {
override def populateItem(li:ListItem[Int]) = println("o Hi!")
}
lv.getModelObject.size mustBe 3
Expand Down

0 comments on commit fa34e5d

Please sign in to comment.