--- 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))
}