[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: aop-mc-int tests failing on annotation parsing

alesj do-not-reply at jboss.com
Tue Mar 4 10:03:31 EST 2008


"adrian at jboss.org" wrote : 
  | It's a stupid test anyway. The purpose is to make sure the metadata
  | is populated properly from the class/xml
  | 
  | It uses the push of the metadata (for AOP to pickup under the wire) to get this information.
  | 
  | It would be the same if it just did:
  | 
  | ControllerContext context = .assertInstalledContext("name");
  | ScopeKey scope = context.getScopeInfo()...;
  | MetaData md  = repository.getMetaData(scope);
  | 
OK, since it's not AOP usage that we're testing there, I've changed the test to get the MetaData in the following way:

  |    protected MetaData assertMetaData(String name)
  |    {
  |       KernelControllerContext context = getControllerContext(name);
  |       assertNotNull(context);
  |       ScopeInfo scopeInfo = context.getScopeInfo();
  |       assertNotNull(scopeInfo);
  |       MetaData metaData = scopeInfo.getMetaData();
  |       assertNotNull(metaData);
  |       return metaData;
  |    }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133933#4133933

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133933



More information about the jboss-dev-forums mailing list