jboss-arquillian

Configure Manuel container IntelliJ Arquillian Wildfly

馋奶兔 提交于 2019-12-11 13:15:22
问题 I m using intelliJ for runnig a junit arquillian test. The problem is my test works with maven command but not with arquillian mvn package -P=arq-wildlfy-managed Here my pom : <dependencyManagement> <dependencies> <!-- Arquillian BOM (Bill Of Materials). --> <dependency> <groupId>org.jboss.arquillian</groupId> <artifactId>arquillian-bom</artifactId> <version>${version.org.jboss.arquillian}</version> <scope>import</scope> <type>pom</type> </dependency> <!-- JUnit regression testing framework.

Arquillian tests stop working after enabling Websphere security

杀马特。学长 韩版系。学妹 提交于 2019-12-11 09:55:36
问题 Arquillian IT tests run fine till the moment I enabled the security in Websphere admin console (In order to build the login functionality). So the question is how to run Tests with Websphere security anabled. Its LDAP (Microsoft AD). Thanks Arquillian.xml ...... <container qualifier="websphere" default="true"> <configuration> <property name="remoteServerAddress">localhost</property> <property name="remoteServerSoapPort">8880</property> <property name="securityEnabled">true</property> <

Arquillian ShrinkWrap maven dependencies in pom

假装没事ソ 提交于 2019-12-11 09:35:36
问题 So as suggest in another thread (Arquillian ShrinkWrap have switched to managed container (Jboss AS 7.1) , now the error is different New dependency managment (see previous link to original question to see ) <dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.shrinkwrap.resolver</groupId> <artifactId>shrinkwrap-resolver-bom</artifactId> <version>2.1.2</version> <scope>test</scope> <type>pom</type> </dependency> <dependency> <groupId>org.jboss.arquillian</groupId> <artifactId

Arquillian: Got 302 (Found)

房东的猫 提交于 2019-12-11 04:58:42
问题 I am trying to test a Service in my web app with JUnit and Arquillian but when I launch the test, console show the following error: java.lang.IllegalStateException: Error launching test at http://127.0.0.1:8080/avisoLegalTest/ArquillianServletRunner?outputMode=serializedObject&className=es.dia.altatienda.service.AvisoLegalServiceTest&methodName=findActivo&cmd=event. Got 302 (Found) My Code: JUnit test: @RunWith(Arquillian.class) @SpringWebConfiguration public class AvisoLegalServiceTest {

WELD-001408 Unsatisfied dependencies for type [Logger] with qualifiers [@Default] at injection point [[field] using arquillian

旧时模样 提交于 2019-12-11 02:17:56
问题 I am running a basic arquillian unit test, using the Greeter example on the arquillian site. The only difference is that am doing a log.debug in the greet(PrintStream to, String name) function in Greeter.java. Am using slf4j for logging. Greeter.java package org.arquillian.example; import java.io.PrintStream; import javax.inject.Inject; import org.slf4j.Logger; public class Greeter { @Inject private Logger log; public void greet(PrintStream to, String name) { log.debug("Greeter Testing"); to

jvm parameters not visible with in arquillian testcase on jboss

这一生的挚爱 提交于 2019-12-11 02:11:51
问题 I am running arquillian in the jboss managed container mode. I am setting the following jvm parameters while starting arquillian testcases in arquillian.xml file: <property name="javaVmArguments">-Xmx2048m -XX:MaxPermSize=256m -Djboss.socket.binding.port-offset=629 -Djboss.bind.address.unsecure=127.0.0.1 However, in my testcode, I am unable to see these jvm parameters. When the following code executes in the testcase, it returns "Not set". System.getProperty("jboss.bind.address.unsecure",

@EJB injection with Arquillian on WebLogic 10.3.5 doesn't work

蹲街弑〆低调 提交于 2019-12-11 02:01:52
问题 I am using Arquillian to run a basic unit test on WebLogic 10.3.5. Unfortunately, @EJB injection does not work for me, and get a NullPointerException when the EJB is invoked. The examples I found don't require an ejb-jar.xml to be added, but I added one. In any case, a NullPointerException is thrown. Any ideas? The unit test: import static org.testng.Assert.assertEquals; import java.io.File; import javax.ejb.EJB; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss

Arquillian Tests not executed

人走茶凉 提交于 2019-12-11 00:15:35
问题 I have a multi module project, organised and built with maven. It consists of a war-module, an ejb-module and an ear-module. They alle have the same parent project (for dependencymanagement). Structure is like: |- parent (packaging pom) |-- ejb-module |-- war-module |-- ear-module Built order is first ejb-module then war-module than ear-module. The project depends on arquillian for testing. Both ejb-module and war-module contain a test. When I run "mvn clean test -Parq-wildfly-managed"

ProgrammaticLogin doesnt work in arquillian tests

六眼飞鱼酱① 提交于 2019-12-10 21:39:05
问题 I'm trying to simulate a login using the ProgrammaticLogin class in my arquillian tests in an embedded glassfish. my code is the following: System.setProperty("java.security.auth.login.config","path/login.config") com.sun.appserv.security.ProgrammaticLogin loginP = new ProgrammaticLogin(); try{ loginP.login("user1","password","fileRealm",true); } catch (Exception e){ System.out.println(e.getMessage()); } i'm getting the following exception: SEVERE: SEC9050: Programmatic login failed com.sun

Arquillian ShrinkWrap

ε祈祈猫儿з 提交于 2019-12-10 20:39:12
问题 I'm having trouble creating a JUnit test using a pom.xml dependency. The test are being run with Arquillian @RunWith(Arquillian.class) In this method @Deployment public static JavaArchive createDeployment() { First, I create a JavaArchive with the package of the project I'm testing JavaArchive merge = ShrinkWrap.create(JavaArchive.class). addPackages(true, "migrazioneGeaPersistenzaTampone", "migrazioneGeaPersistenza", "it.**.mistral.importGEA4.task", "migrazioneGeaPersistenzaAccess" ).