Tag: jboss arquillian

无法在Windows 10上从arquillian多维数据集启动Docker容器

我有一个junittesting,必须启动一个docker集装箱。 这是我使用的代码 @ClassRule public static ContainerDslRule mysql = new ContainerDslRule(TestConfigConstants.DOCKER_IMAGE) .withPortBinding(TestConfigConstants.PORT) .withEnvironment("MYSQL_ROOT_PASSWORD", TestConfigConstants.PASSWORD, "MYSQL_DATABASE", TestConfigConstants.DB, "MYSQL_USER", TestConfigConstants.USERNAME, "MYSQL_PASSWORD", TestConfigConstants.PASSWORD); 当我用Docker工具箱安装的Windows 7 PC上开始testing的时候一切正常。 但是,当我开始在Windows 10电脑上我有follwingexception java.lang.ExceptionInInitializerError at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown Source) at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source) at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source) at java.lang.reflect.Field.getFieldAccessor(Unknown Source) at java.lang.reflect.Field.get(Unknown Source) at org.junit.runners.model.FrameworkField.get(FrameworkField.java:73) at org.junit.runners.model.TestClass.getAnnotatedFieldValues(TestClass.java:230) at org.junit.runners.ParentRunner.classRules(ParentRunner.java:255) at org.junit.runners.ParentRunner.withClassRules(ParentRunner.java:244) at org.junit.runners.ParentRunner.classBlock(ParentRunner.java:194) at org.junit.runners.ParentRunner.run(ParentRunner.java:362) […]

Arquillian Cube REST-Assured集成testing

我试图在docker中用远程tomcat服务器testing我的REST API。 以下是它的细节: 2017年9月21日更新:-START- 发现Arquillian Cube-RESTEasytesting存在一些问题,因为arquillian cube依赖于使用Jersey作为JAXRS提供者的docker-java。 看到更多的细节 我们是否有解决上述问题的方法? 2017年9月21日更新:-END- arquillian.xml <?xml version="1.0" encoding="UTF-8"?> <arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> <extension qualifier="docker"> <property name="serverVersion">1.28</property> <property name="serverUri">http://localhost:2375</property> <property name="definitionFormat">CUBE</property> <property name="dockerContainers"> tomcat: image: tutum/tomcat:7.0 exposedPorts: [8089/tcp] await: strategy: polling stdErr: true env: [TOMCAT_PASS=mypass, JAVA_OPTS=-Dcom.sun.management.jmxremote.port=8089 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false] portBindings: [8080/tcp] </property> </extension> <container qualifier="tomcat" default="true"> <configuration> <property name="host">localhost</property> <property […]

Arquillian Cube与RestEasy合作吗?

Arquillian Cube不能使用RestEasy实现。 我得到如下错误: 导致:javax.ws.rs.ProcessingException:RESTEASY003145:无法find内容typesapplication / vnd.docker.raw-Stream的MessageBodyReader,并键入类java.io.InputStream

为什么我的Arquillian无人机functiontesting不适用于GitLab CI?

在本地运行良好的testing在gitlab.com的GitLab CI共享运行程序上失败(MCVE在https://gitlab.com/krichter/gitlab-ci-file-creation ,日志在https://gitlab.com/krichter / gitlab-ci-file-creation / – / jobs / 40064276 ),因为在Arquillian webdriver的提取过程中,一个目录不能被创build,或者被Java认为是不存在的(见下面的细节): Nov 13, 2017 7:31:32 AM org.glassfish.deployment.admin.DeployCommand execute INFO: 664320b4-384a-414a-b0b4-546937428842 was successfully deployed in 7,496 milliseconds. Nov 13, 2017 7:31:33 AM org.arquillian.spacelift.Spacelift$SpaceliftInstance <init> INFO: Initialized Spacelift from defaults, workspace: /builds/krichter/gitlab-ci-file-creation, cache: /root/.spacelift/cache Drone: downloading phantomjs-2.1.1-linux-x86_64.tar.bz2 from https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 to /root/.arquillian/drone/phantomjs/2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2 ……………. Nov 13, 2017 […]