added spring dispatcher configuration

This commit is contained in:
Michael Kober 2010-03-30 10:41:06 +02:00
parent e33c5862bf
commit 8ae90fdfda
24 changed files with 1408 additions and 480 deletions

View file

@ -29,13 +29,21 @@ class ActiveObjectFactoryBeanTest extends Spec with ShouldMatchers {
assert(bean.isRemote)
}
it("should create object that implements the given interface") {
bean.setInterface("com.biz.IPojo");
assert(bean.hasInterface)
}
it("should create an active object with dispatcher if dispatcher is set") {
val props = new DispatcherProperties()
props.dispatcherType = "executor-based-event-driven"
bean.setDispatcher(props);
assert(bean.hasDispatcher)
}
it("should return the object type") {
bean.setTarget("java.lang.String")
assert(bean.getObjectType == classOf[String])
}
it("should create an active object") {
// TODO:
}
}
}