Skip to content

Commit

Permalink
create valueclass for storage/partition handler tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Sep 10, 2011
1 parent 59545e8 commit e77c44c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions scalaengine/src/test/scala/PartitionHandlerSpec.scala
Expand Up @@ -24,6 +24,7 @@ class PartitionHandlerSpec extends Spec with ShouldMatchers with BeforeAndAfterA

root.getOrCreate("namespaces/partitiontestns/keySchema").data = IntRec.schema.toString.getBytes
root.getOrCreate("namespaces/partitiontestns/valueSchema").data = IntRec.schema.toString.getBytes
root.getOrCreate("namespaces/partitiontestns/valueClass").data = classOf[IntRec].getName.getBytes
root.getOrCreate("namespaces/partitiontestns/partitions")

val service = (handler.remoteHandle !? CreatePartitionRequest("partitiontestns", "bdb",startKey.map(_.toBytes), endKey.map(_.toBytes))) match {
Expand Down
3 changes: 3 additions & 0 deletions scalaengine/src/test/scala/StorageHandlerSpec.scala
Expand Up @@ -22,10 +22,13 @@ class StorageHandlerSpec extends Spec with ShouldMatchers with BeforeAndAfterAll
val root = handler.root
root.getOrCreate("namespaces/testns/keySchema").data = IntRec.schema.toString.getBytes
root.getOrCreate("namespaces/testns/valueSchema").data = IntRec.schema.toString.getBytes
root.getOrCreate("namespaces/testns/valueClass").data = classOf[IntRec].getName.getBytes
root.getOrCreate("namespaces/testns/partitions")


root.getOrCreate("namespaces/testgc/keySchema").data = IntRec.schema.toString.getBytes
root.getOrCreate("namespaces/testgc/valueSchema").data = IntRec.schema.toString.getBytes
root.getOrCreate("namespaces/testgc/valueClass").data = classOf[IntRec].getName.getBytes
root.getOrCreate("namespaces/testgc/partitions")
}

Expand Down

0 comments on commit e77c44c

Please sign in to comment.