Browse files

- Remove more warnings

- Remove compile options -Xcheckinit -Xwarninit; build fails with these enabled
- All tests in common, actor, util really work now
  • Loading branch information...
1 parent 402ba8a commit 3c0efb70c9b30e1ecf4fbb2717a2eabaac1d608d @indrajitr indrajitr committed Feb 20, 2011
View
2 core/util/src/test/scala/net/liftweb/util/ClassHelpersSpec.scala
@@ -91,7 +91,7 @@ object ClassHelpersSpec extends Specification("ClassHelpers Specification") {
containsClass(classOf[String], Nil) must beFalse
}
"return false if the list to match doesn't contain any class assignable by the tested class" in {
- containsClass(classOf[String], List(classOf[Float], classOf[Integer])) must beFalse
+ containsClass(classOf[String], List(classOf[Float], classOf[java.lang.Integer])) must beFalse
}
}
View
1 core/util/src/test/scala/net/liftweb/util/ListHelpersSpec.scala
@@ -30,6 +30,7 @@ object ListHelpersSpec extends Specification("ListHelpers Specification") with L
"insert after 2" in {
val ret = delta(List(1, 2, 4, 5), List(1, 2, 3, 4, 5)) {
case InsertAfterDelta(3, 2) => "ok"
+ case _ => "not ok"
}
ret must_== List("ok")
}
View
8 project/build/LiftFrameworkProject.scala
@@ -91,24 +91,20 @@ class LiftFrameworkProject(info: ProjectInfo) extends ParentProject(info) with L
override def libraryDependencies = super.libraryDependencies ++ libs ++ Seq(TestScope.junit)
- // TODO: Remove these and resort to LiftDefaultProject settings
- // override def compileOptions = Seq("-Xwarninit", "-encoding", "utf8").map(CompileOption)
+ // FIXME: Build fails with -Xcheckinit -Xwarninit
+ override def compileOptions = super.compileOptions.toList -- compileOptions("-Xcheckinit", "-Xwarninit").toList
// System property hack for derby.log, webapptests
override def testAction =
super.testAction dependsOn
task {
- System.setProperty("derby.stream.error.file", (outputPath / "derby.log").absString)
System.setProperty("net.liftweb.webapptest.src.test.webapp", (testSourcePath / "webapp").absString)
None
}
// FIXME: breaks with SBT
override def testOptions =
- TestFilter((name: String) => name.endsWith("ToHeadSpec")) ::
ExcludeTests(
- // Core tests
- "net.liftweb.util.ActorPingUnit" :: "net.liftweb.util.ActorPingSpec" ::
// Web tests
"net.liftweb.webapptest.OneShot" :: "net.liftweb.webapptest.ToHeadUsages" :: "net.liftweb.http.SnippetSpec" ::
// Persistence tests

0 comments on commit 3c0efb7

Please sign in to comment.