I am having a very basic straightforward configuration as follow
--- clip ---
compile group: 'org.jboss.arquillian', name: 'arquillian-bom', version: '1.4.0.Final', ext: 'pom'
testCompile group: 'org.jboss.arquillian.junit', name: 'arquillian-junit-container', version: '1.4.0.Final'
testCompile group: 'org.jboss.arquillian.container', name: 'arquillian-weld-ee-embedded-1.1', version: '1.0.0.Final'
testCompile 'org.jboss.weld:weld-core:2.4.5.Final'
testCompile group: 'junit', name: 'junit', version: '4.11'
--- end clip ---
And this is my Test class
@RunWith(Arquillian.class)
public class TooltipGeneratorTest {
@Deployment
public static JavaArchive createDeployment() {
return ShrinkWrap.create(JavaArchive.class)
.addClass(XXXX.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
}
@Test
public void testStart() {
System.out.print("gamma");
assert true;
}
AS you see, I am not even injecting a bean inside. I am unable to run a basic arquillian test in weld-ee container.
The error I am having when running with
gradle clean test
is
<failure message="java.lang.NoSuchMethodError: org.junit.runners.model.TestClass.getAnnotatedFields()Ljava/util/List;" type="java.lang.NoSuchMethodError">java.lang.NoSuchMethodError:
Is there any missing dependency? As mentioned in the tutorial, I have all the needed dependencies
- Arquillian JUnit integration
- Arquillian container adapter for the target container
- Container runtime (for an embedded container)
Thanks in advance
Hi there,
RépondreSupprimerDid you resolve the above issue. If yes
Could you please pot your comments here
Becoz I am also having same environment setup and same error
Thanks
Nityanand Pisay