added spring dispatcher configuration
This commit is contained in:
parent
e33c5862bf
commit
8ae90fdfda
24 changed files with 1408 additions and 480 deletions
|
|
@ -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:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue