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