still a problem test
authorAlexandre Bertails <bertails@w3.org>
Thu, 25 Aug 2011 15:31:35 -0400
branchtest
changeset 91 c00ecbfcebb7
parent 90 8017afa2ff57
child 92 86990d772322
still a problem
src/test/scala/Test.scala
--- a/src/test/scala/Test.scala	Thu Aug 25 15:29:16 2011 -0400
+++ b/src/test/scala/Test.scala	Thu Aug 25 15:31:35 2011 -0400
@@ -9,12 +9,7 @@
 import com.mongodb.casbah.MongoConnection
 
 case class Workout(@Key("_id") id: ObjectId = new ObjectId,
-                  activity:String,
-                  events:List[Event])
-                  
-case class Event(@Key("t") timestamp:Long,
-                 @Key("c") coordinates:Option[(Double, Double, Option[Double])],
-                 @Key("s") status:Option[String])            
+                   @Key("c") coordinates:Option[(Double, Double, Option[Double])])
 
 import org.scalatest.FunSuite
 
@@ -22,13 +17,7 @@
 
   test("") {
 
-    val run =
-      Workout(
-          activity="http://dbpedia.org/resource/Running",
-          events=List(
-              Event(timestamp=1314049555597L, coordinates=Some((-71.09068298339844,42.361671924591064,Some(66))), status=None)
-          )
-      )
+    val run = Workout(coordinates=Some((-71.09068298339844,42.361671924591064,Some(66))))
     
       val runId = run.id
       println("runId: " + runId)