just isolated the issue test
authorAlexandre Bertails <bertails@w3.org>
Thu, 25 Aug 2011 16:32:57 -0400
branchtest
changeset 99 627d4604ba0d
parent 92 86990d772322
just isolated the issue
src/test/scala/Test.scala
--- a/src/test/scala/Test.scala	Thu Aug 25 16:19:54 2011 -0400
+++ b/src/test/scala/Test.scala	Thu Aug 25 16:32:57 2011 -0400
@@ -10,7 +10,11 @@
 
 @Salat
 case class Workout(@Key("_id") id: ObjectId = new ObjectId,
-                   @Key("c") coordinates:Option[Seq[Double]])
+                   @Key("c") coordinates:Option[Seq[Double]]) {
+  
+
+  
+}
 
 import org.scalatest.FunSuite
 
@@ -35,9 +39,9 @@
 
       println(WorkoutDAO.insert(run))
       
-      val fromDatabase = WorkoutDAO.findOneByID(runId)
+      val fromDatabase = WorkoutDAO.findOneByID(runId).get
       
-      println("fromDatabase: " + fromDatabase)
+      println("fromDatabase: " + fromDatabase.coordinates.asInstanceOf[Option[com.mongodb.BasicDBList]].get(0))
       
       
   }