The "generic" tests are in the dependency module:
1) Add an alias for a context with a "bad" ObjectName
org.jboss.test.dependency.controller.test.CrossContextDependencyBadObjectName2TestCase
2) Rewrite the "iDepend" on when it is a "bad" ObjectName
org.jboss.test.dependency.controller.test.CrossContextDependencyBadObjectNameTestCase
These should handle all the problems (and remove the need to do this in system-jmx)
but we need similar concrete tests that the "inject", "depends", etc.
actually
work in the POJO metadata.
It should just be a case of "copying" all the basic dependency tests in
org.jboss.test.kernel.dependency.test.*
to make two new tests that follow the same pattern as the generic tests.
i.e.
1) good dependency name depends on bad bean name
2) bad dependency name depends on good bean name
All those tests could really do with some refactoring to make them more easily
extendable and reusable (and remove OldAbstractDependencyTest).
Besides not being easily extensible, there's also lots of repeated code
in them as well. :-(
But that is an optional part of the task. :-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034602#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...