anonymous wrote : Your code is basically the same as the ProfileServiceUnitTestCase.testAddDataSource?
|
Yes it was definitely modeled after it (matched when I first wrote it), but it could break from any thing that has changed since then.
anonymous wrote : At least part of the problem is that you are passing the wrong deployment name here
I haven't changed anything, where this did work before. So in passing the "wrong" deployment, I am not sure what I am missing, or what is now considered wrong. What would it need to be?
Thanks guys
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133939#4133939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133939
"alesj" wrote : "adrian(a)jboss.org" wrote :
| | (so it must have worked at some point unless I'm stupid? :-)
| |
| I have no idea how this ever worked - with AOP enabled. :-)
|
The logical conclusion is incontrovertable (proof by contradication)
Can you make sure bug reports get raised for the failing tests please.
It's not very good when you're changing something important and the
testsuite already has lots of failures.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133938#4133938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133938
"adrian(a)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