This didn't help unfortunately.
But I got a bit further. There seems to be a dependency between
NegativeValidationTestCase and DisabledValidationTestCase (in the same
package). If I run the former alone, it fails, but if I run the two
together via -Dtest..., both pass.
I really can't say what's causing this: NegativeValidationTestCase just
expects *any* exception (@Test(expected = Exception.class)), so it's really
hard to say what's actually asserted here. I guess
DisabledValidationTestCase creates some exceptional state which then causes
NegativeValidationTestCase to pass, though possibly not due to the
exception originally expected.
2013/4/19 Scott Marlow <smarlow(a)redhat.com>
You might need to define allTests. Something like this might work
better:
cd testsuite/integration/basic/
mvn install -Dts.noSmoke -Dtest=org.jboss.as.test.**integration.jpa.basic.
**entitymanagerfactorytest.**EntityManagerFactoryTestCase -DallTests
Could you try again like this (after building AS8 first).
On 04/18/2013 12:29 PM, Gunnar Morling wrote:
> Hi all,
>
> I'm having a problem with running single tests on jboss-as/master.
>
> If I run all the "basic" integration tests (via ./integration-tests.sh
> test -Dts.basic), everything works fine. But if when I run a certain
> test only (/integration-tests.sh test -Dts.basic
> -Dtest=**NegativeValidationTestCase), that one will fail.
>
> The log says:
>
> org.jboss.msc.service.**DuplicateServiceException: Service
> jboss.connector.connection-**factory.java:jboss/exported/**bv/VCF is
> already
> registered
>
> (See
http://pastebin.com/DkrwVgU5 for the complete stack trace). IIUC
> this factory is registered by this test itself, but somehow it fails to
> be properly removed/cleaned up when only this single test is run.
>
> Does anyone have an idea what's the cause for this and how it can be
> avoided?
>
> Thanks a lot,
>
> --Gunnar
>
>
>
> ______________________________**_________________
> jboss-as7-dev mailing list
> jboss-as7-dev(a)lists.jboss.org
>
https://lists.jboss.org/**mailman/listinfo/jboss-as7-dev<https://lists...
>
>