Skip to content

Instantly share code, notes, and snippets.

View rmpestano's full-sized avatar

Rafael Pestano rmpestano

View GitHub Profile
[INFO] Arquillian Cube Containerless ..................... SUCCESS [0.005s]
[INFO] Arquillian Cukes In Space ......................... SUCCESS [0.028s]
[INFO] Arquillian Universe Test .......................... FAILURE [37.442s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.906s
[INFO] Finished at: Fri Sep 25 09:40:50 BRT 2015
[INFO] Final Memory: 15M/116M
[INFO] ------------------------------------------------------------------------
asciidoctor: WARNING: conversion missing in backend pdf for pass

org.jruby.exceptions.RaiseException: (NameError) no method 'process' for arguments (org.jruby.RubyObject,org.jruby.RubyObject) on Java::ComGithubCukedoctorExtension::CukedoctorScriptExtension
  available overloads:
    (org.asciidoctor.ast.Document,java.lang.String)
    (org.asciidoctor.ast.DocumentRuby,java.lang.String)
	at org.jruby.RubyMethod.call(org/jruby/RubyMethod.java:132)
	at RUBY.convert(C:/Ruby21/lib/ruby/gems/2.1.0/gems/asciidoctor-1.5.2/lib/asciidoctor/document.rb:1034)
	at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
@rmpestano
rmpestano / Arquillian interceptor.adoc
Last active March 12, 2016 20:12
How to Intercept an arquillian test?
@RunWith(Arquillian.class)
@MyInterceptor
public class ItTest {

    @Deployment
    public static Archive<?> createDeployment() {

        WebArchive war = Deployments.getBaseDeployment();
@rmpestano
rmpestano / gist:14312d475ab402768783
Last active August 29, 2015 14:19
CDI interceptor to activate session scope
@rmpestano
rmpestano / gist:b063c759036b09d6446b
Last active August 18, 2017 13:11
Asciidoctor documentation inside war
<properties>
    <asciidoctorj.pdf.version>1.5.0-alpha.16</asciidoctorj.pdf.version>
    <asciidoctorj.version>1.5.6</asciidoctorj.version>
    <jruby.version>9.1.12.0</jruby.version>
</properties>
<plugin>
    <groupId>org.asciidoctor</groupId>
    <artifactId>asciidoctor-maven-plugin</artifactId>
@rmpestano
rmpestano / assertionBuilder.asciidoc
Last active October 28, 2015 18:49
A simple component for building "ifless" assertions
@rmpestano
rmpestano / benchmark.md
Last active November 20, 2016 12:07
Compare machine performance via Java EE integration/functional tests

:toc: macro toc::[]

#access it using docgist here#

= Computer benchmarks based on JavaEE integration & functional tests :icons: font :linkattrs: :sectanchors:

@rmpestano
rmpestano / auto_start_containers_conflict
Last active August 29, 2015 14:13
autoStartContainers conflict
I am facing an issue with autoStartContainers. The problem is that when image is built the container is also created, buildImageCmd.exe() - http://i.imgur.com/HFUy3Qm.png[img1]. So when the create container command is fired with createContainerCmd.exec() - http://i.imgur.com/caGBfQy.png[img2] I receive "Conflict, the name wildfly is already assigned to.... ". Am I doing something wrong? here is my arquillian.xml:
[source,xml]
.arquillian.xml
----
<arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://jboss.org/schema/arquillian"
xsi:schemaLocation="
http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
@rmpestano
rmpestano / gist:4dead3fa7f4f4eec3f39
Last active August 29, 2015 14:13
Arquillian Cube error
trying to run docker image in my cube tests. Its the same as ftests project from arquillian-cube project.
[source,xml]
.arquillian.xml
----
<extension qualifier="docker">
<property name="serverVersion">1.12</property>
<property name="serverUri">http://localhost:2375</property>
<property name="autoStartContainers">tomcat_default</property>