Hi!

Somehow those 2 functions cover pretty much of the same functionality, isn't?

Gurkan, do you think we can merge the functionalities somehow?

E.g. for the tests we could use BeansDeployer#deploy with a special 
MetaDataDiscoveryService which only returns the one bean class under test.

something like: 

TestContext#defineSimpleWebBean(Class<T> clazz) {
  BeansDeployer bd = getBeansDeployer();
  MetaDataDiscoveryService mockMdd = new MockMetaDataDiscoveryService(clazz);
  bd.deploy(mockMdd);
}

similar stuff for XML, etc. got me?

This way we could test all the lifecycle events and stuff. For my gut feeling 
the test container code is way too far from the 'real' lifecycle code currently.

Should I try it, or do you see any problem which will be a show stopper?

LieGrue,
strub



Reply via email to