[weld-dev] Converting Weld Core Tests to Arquillian

Aslak Knutsen aslak at 4fs.no
Thu Jul 29 13:33:49 EDT 2010


tests and tests-arquillian are now back to stable.

In the new Arquillian based test suite based on weld-trunk against M4,
the current failing tests are:

Running org.jboss.weld.tests.extensions.injectionTarget.InjectionTargetTest
	- .isTheSameInstance Assertion failure
	
Running org.jboss.weld.tests.extensions.interceptors.InterceptorExtensionTest
	- Assert.assertEquals(1, ng.value()); <-- ngValue() == 2
	
Running org.jboss.weld.tests.resolution.circular.resource.ResourceCircularDependencyTest
	- java.lang.IllegalStateException: Illegal to call this method from
injected, managed EntityManager

Running org.jboss.weld.tests.builtinBeans.ee.EEResourceProducerFieldPassivationCapableTest
	- java.lang.IllegalStateException: Illegal to call this method from
injected, managed EntityManager

Running org.jboss.weld.tests.enterprise.EnterpriseBeanTest
	- Caused by: org.jboss.serial.exception.SerializationException: Could
not create instance of org.jboss.weld.bean.SessionBean$1 -
org.jboss.weld.bean.SessionBean$1
	- Caused by: java.lang.InstantiationException:
org.jboss.weld.bean.SessionBean$1

Running org.jboss.weld.tests.extensions.annotatedType.invalidParameters.AnnotatedTypeExtensionTest
	- Expected, Arquillian does not support DeploymentException assertion in Alpha3
		https://jira.jboss.org/browse/ARQ-227
		

There are still some tests left in "tests"; some marked broken, some
local running tests and some with DeploymentException assertion(not
supported by arq at this time)

-aslak-

On Wed, Jul 28, 2010 at 4:53 PM, Aslak Knutsen <aslak at 4fs.no> wrote:
> I'm in the process of converting/moving a lot of the tests in
> core/test over to core/tests-arquillian.
>
> Both modules will be unstable for a little while.
>
> I'll give a new shout when done..
>
> -aslak-
>


More information about the weld-dev mailing list