-
1. Re: Arquillian without maven
aslak Aug 23, 2011 6:26 AM (in response to angelcervera)There is a section in the docs about integrating with other build systems, mainly Ant+Ivy and Gradle
https://docs.jboss.org/author/display/ARQ/Build+system+integration
But if you really want to go ant only, these are the dependencies you'll need:
GlassFish Embedded
[INFO] +- org.glassfish.extras:glassfish-embedded-all:jar:3.1:provided
Arquillian + Container + Test
[INFO] org.jboss.arquillian.container:arquillian-glassfish-embedded-3.1:jar:1.0.0.CR1
[INFO] +- org.jboss.arquillian.container:arquillian-container-spi:jar:1.0.0.CR4:compile
[INFO] | +- org.jboss.arquillian.core:arquillian-core-spi:jar:1.0.0.CR4:compile
[INFO] | | \- org.jboss.arquillian.core:arquillian-core-api:jar:1.0.0.CR4:compile
[INFO] | +- org.jboss.arquillian.config:arquillian-config-api:jar:1.0.0.CR4:compile
[INFO] | +- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.0.0.CR4:compile
[INFO] | | \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:1.1.0-alpha-2:compile
[INFO] | +- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.0.0-beta-5:compile
[INFO] | \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api:jar:1.1.0-alpha-2:compile
[INFO] +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.0.0.CR4:compile
[INFO] | \- org.jboss.arquillian.test:arquillian-test-spi:jar:1.0.0.CR4:compile
[INFO] +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.0.0.CR4:compile
[INFO] +- org.jboss.arquillian.testenricher:arquillian-testenricher-cdi:jar:1.0.0.CR4:compile
[INFO] +- org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.0.0.CR4:compile
[INFO] +- org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.0.0.CR4:compile
[INFO] +- org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.0.0.CR4:compile
[INFO] +- org.jboss.arquillian.testng:arquillian-testng-container:jar:1.0.0.CR4:test
[INFO] | +- org.jboss.arquillian.testng:arquillian-testng-core:jar:1.0.0.CR4:test
[INFO] | +- org.jboss.arquillian.test:arquillian-test-api:jar:1.0.0.CR4:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.0.0.CR4:test
[INFO] | +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.0.0.CR4:test
[INFO] | +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.0.0.CR4:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.0.0.CR4:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.0.0.CR4:test
[INFO] | \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.0.0-beta-5:test
[INFO] | \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.0.0-beta-5:test
+ TestNG
All can be found here: https://repository.jboss.org/nexus/index.html#welcome
-
2. Re: Arquillian without maven
shashankdass Apr 29, 2013 2:05 PM (in response to aslak)Hi,
First thing first, Thanks for the great post. This really got me started.
I did my setup accordingly. My project is an Ant project and we use JUnit for unit testing.
I used glassfish embedded as an application server.
Following are the steps that I did to get it running.
1) Imported JUnit, Glassfish embedded and arquillian jars(listed above).
2) Imported the jars that contained the classes under test.
3) Made a project in Eclipse with referenced libraries as jars and wrote a test caseand tried to do 'Run As' JUnit test. The test case compiles successfully but I am having tough time starting the glassfish embedded server.
Errors I am getting is as follows
"could not setup glassfish embedded runtime"
I followed some links as
https://issues.jboss.org/browse/ARQ-400 and https://community.jboss.org/thread/164281
Can you guide me in some direction regarding this? That would be really appreciated.
Also I have one doubt. Do I need to write Arquillan.xml file as the above links talks in that direction.
If yes, Can you show me some links from where I can learn how to write that file.
If No, Any other help is greatly appreciated.
Thanks.