jboss-arquillian

Arquillian wildfly8.2 embedded : JBAS014670: Failed initializing module org.jboss.as.logging

江枫思渺然 提交于 2020-01-02 13:40:23
问题 I'm trying to set up a project that uses arquillian to do some kind of integration testing. I already went through some tutorials but can't get my test running. The exception I get is: Cannot not load JBoss LogManager. The LogManager has likely been accessed prior to this initialization. Jul 14, 2015 10:30:37 AM org.jboss.msc.service.ServiceContainerImpl <clinit> INFO: JBoss MSC version 1.2.2.Final Jul 14, 2015 10:30:37 AM org.jboss.as.server.ApplicationServerService start INFO: JBAS015899:

Arquillian Embedded Glassfish Certificate Expired

无人久伴 提交于 2019-12-30 03:32:25
问题 On Aug 14th, the gtecybertrust5ca certifcate used by Glassfish expired causing my Arquillian tests to print errors. This problem is similar to this one: Certificate has expired” in log by starting Glassfish 3.1.2 except, I am using the Embedded version of Glassfish via Maven, Arquillian and SureFire to run unit and integration tests. I have tried instructing Maven to use a local keystore, the one that comes with the JRE, in an effort to keep the expired cert from being used. I verified the

How to test login/authentication with Arquillian - Java EE 7

北城余情 提交于 2019-12-30 02:19:10
问题 We have a Java EE 7 application and use Arquillian to test stuff. Now we want to check for some permissions of the currently logged in user. My question is quite basic, how do I login a user when inside a testcase? I have read ProgrammaticLogin doesnt work in arquillian tests and Embedded Glassfish, security and Arquillian questions but they are not clearly answered. My current approach is something like this: // Inject services etc. @Test public void testLogin(){ UserAccount user = new

Why Entitys uninitialized collection is initialized automatically only for Entities persisted before current transaction?

醉酒当歌 提交于 2019-12-25 08:53:50
问题 (Please feel free to edit the title after reading this question) I have quite simple @ManyToOne bidirectional mapping between entities Parent and Child . The list of children Collection<Child> children in Parent is never initialized so it should be null . When using EntityManager.find(...) for previously persisted Parent and then getting the list from that Parent gives ArrayList even there are no children yet with this Parent and it is fine. However if persisting or merging a new Parent in

TomEE arquillian additional library for Hibernate in Testing

孤街浪徒 提交于 2019-12-25 03:44:15
问题 I am trying to do integration testing for JPA ( hibernate and Hikari ) in TomEE 8. As per TomEE documentation I can additional libraries using additionalLibs in pom.xml ( surefire pluggin) , I have added hibernate and Hikari dependencies as mentioned below . But getting error while starting my test case. How to fix this issue ? <systemPropertyVariables> <tomee.additionalLibs> mvn:org.hibernate:hibernate-entitymanager:${hibernate.version} mvn:org.hibernate:hibernate-hikaricp:${hibernate

Errors in Running Servlet test with GAE/Arquillian

廉价感情. 提交于 2019-12-25 02:18:23
问题 I tried to run with: $ mvn -Dtest=AnnotatedEchoServletTestCase test -Dappengine.sdk.root=/home/xybrek/buildtools/appengine-java-sdk-1.8.4 This is the log: T E S T S Running com.myapp.AnnotatedEchoServletTestCase Mar 07, 2014 6:15:20 PM org.jboss.arquillian.container.appengine.embedded.AppEngineSetup prepare INFO: servlet-test.war: /WEB-INF/ /WEB-INF/lib/ /WEB-INF/lib/appengine-api-1.0-sdk-1.8.4.jar /WEB-INF/classes/ /WEB-INF/classes/com/ /WEB-INF/classes/com/myapp/ /WEB-INF/classes/com/myapp

How to test JSF application [closed]

╄→гoц情女王★ 提交于 2019-12-25 02:01:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I would like to test UI part and the state of managed beans as well. Previously I used JSFUnit and want to know if something better exists in JSF world. I heard about Arquillian and read some articles but never used it. How would you suggest to test? 回答1: Arquillian Drone is the next iteration of JSFUnit. You

Dependency injection does not work in Arquillian Test

杀马特。学长 韩版系。学妹 提交于 2019-12-24 15:22:59
问题 This is test class: I try to inject a Paper object then perform the action to test whether the injection is failed or not. @RunWith(Arquillian.class) public class ExcelProcessorTest { // Not work. Because Paper and ExcelProcessorTest are in different modules? @Inject private Paper paper; @Deployment public static JavaArchive createDeployment() { JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "test.jar") .addClasses(Paper.class) .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");

Arquillian don't clean deployment from JBoss when run from console

倾然丶 夕夏残阳落幕 提交于 2019-12-24 15:07:28
问题 I' am working on a JavaEE Project which we test with Arquillian. All my Tests running well when I start them from Eclipse. But when I start them from console Arquillian don't perfom an undeploy. After the Tests are finished they leave a deployment entry in standalown.xml like these: <deployments> <deployment name="Absenz-ear.ear" runtime-name="Absenz-ear.ear"> <content sha1="612823b52f0a4250c4fa889f885288c2d0ee24b6"/> </deployment> </deployments> And also the deployment won't clean from JBoss

arquillian-was-embedded-8 runs but can't inject EJB. NullPointerException

≯℡__Kan透↙ 提交于 2019-12-24 14:34:30
问题 I tried to inject my EJB bean in Arquillian integration tests with WebSphere embedded container. When injecting EJB I get the NullPointerException. But container is started correctly, because translogs are occured. I followed the exmaple at the https://github.com/arquillian/arquillian-container-was/blob/master/was-embedded-8/src/test/java/org/jboss/arquillian/container/was/embedded_8/WebSphereEmbeddedIntegrationClientTestCase.java My test code: package com.daoleen.websphere.arquillian.test;