#304 Fixed Support for ApplicationContextAware in akka-spring
This commit is contained in:
parent
da275f45dd
commit
2deb9faf3d
4 changed files with 25 additions and 4 deletions
|
|
@ -69,6 +69,10 @@ class ActiveObjectFactoryBeanTest extends Spec with ShouldMatchers {
|
|||
var ctx = new ClassPathXmlApplicationContext("appContext.xml");
|
||||
val target:ResourceEditor = ctx.getBean("bean").asInstanceOf[ResourceEditor]
|
||||
assert(target.getSource === "someString")
|
||||
|
||||
val sampleBean = ctx.getBean("sample").asInstanceOf[SampleBean];
|
||||
Thread.sleep(300)
|
||||
assert(sampleBean.gotApplicationContext)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue