#304 Fixed Support for ApplicationContextAware in akka-spring

This commit is contained in:
Johan Rask 2010-07-05 15:53:49 +02:00
parent da275f45dd
commit 2deb9faf3d
4 changed files with 25 additions and 4 deletions

View file

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