|
Arquillian is revolutionary platform that greatly simplifies integration testing for Java middleware. No more mocks. No more container lifecycle and deployment hassles. Just real tests!
|
The mission of the Arquillian project is to provide a powerful testing platform that handles all the plumbing of managing the container lifecycle, deployment and framework initialization so you can focus on writing your integration tests. Real tests.
In short...
Arquillian makes integration testing a breeze!
Arquillian minimizes the burden on you—the developer—by encapsulating your integration test in a lifecycle that performs the following steps:
- Manages the lifecycle of the container (start/stop),
- Bundles the test class with dependent classes and resources into a deployable archive,
- Enriches the test class (e.g., resolving @Inject, @EJB and @Resource injections),
- Deploys the archive to test (deploy/undeploy) and
- Captures results and failures.
To avoid introducing unnecessary complexity into the developer’s build environment, Arquillian integrates seamlessly with familiar testing frameworks (e.g., JUnit 4, TestNG 5), allowing tests to be launched using existing IDE, Ant and Maven test plugins—without any add-ons.
Prove it.
|
Sure thing. Consider an integration test for an EJB. How do you start the container? Deploy the EJB? Get the EJB reference? Run the test in an IDE? Use any EJB container? Arquillian takes care of all that! Did you think it could be this easy? import static org.junit.Assert.assertEquals; import javax.ejb.EJB; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; import org.junit.Test; import org.junit.runner.RunWith; @RunWith(Arquillian.class) public class GreetingManagerTest { @Deployment public static JavaArchive createDeployment() { return ShrinkWrap.create(JavaArchive.class, "test.jar") .addClasses(GreetingManager.class, GreetingManagerBean.class); } @EJB private GreetingManager greetingManager; @Test public void shouldGreetUser() throws Exception { String name = "Earthlings"; assertEquals("Hello, " + name, greetingManager.greet(name)); } } The just the beginning of what's possible. See more examples...
|
Learn More
|
Explore the capabilities that Arquillian brings to your tests.
|
Latest Project Blog Entries
- The Arquillian Ajocado project is in need of clothing We need a fresh look to tackle the bright f...
- Feb 8, 2012 6:58 AM
- The Arquillian Ajocado project is in need of clothingWe need a fresh look to tackle the bright future ahead. Something that will make us(and you!) memorable for years to come. Show of your design skills and give us a hand!...fame and fortune awaits you...Ajocado project logo | Arquillian | JBoss Community
- Arquillian + Arquillian Drone
- Feb 7, 2012 12:05 PM
- Arquillian + Arquillian DronePavol Pitoňák originally shared this post:How we migrated #RichFaces test suite to #Arquillian.Learn and share: Migration to Arquillian - doneOur former functional test suite was written as Selenium tests, more precisely we used our homemade framework (RichfFaces Selenium) in top of Selenium 1, from which Arquillian Ajo…
- Heading over to FOSDEM 2012 this weekend in Brussels, Belgium? Don't miss +Koen Aers Saturday tal...
- Jan 31, 2012 7:19 AM
- Heading over to FOSDEM 2012 this weekend in Brussels, Belgium? Don't miss +Koen Aers Saturday talk on JBoss Forge and +Arquillian: Two Missing Links in Enterprise Java Development!Time 3:00pm–3:55pm WETDate 4th February 2012JBoss Forge / Arquillian: Two Missing Links in Enterprise Java Development at FOSDEM 2012 | LanyrdOne common complaint you hea…
Latest Community Blogs and Articles
- Building and testing ADF applications with Maven, JSFUnit, Arquillian and Embedded GlassFish
- Some time ago I have been playing with Java Server Faces 2.0 (e.g. JSF 2) and JSFUnit in combination with Arquillian and Embedded Glassfish as a Proof Of Concept for unit testing JSF applications. As our applications are being developped with the Oracle ADF framework, I was wondering if it would be possible to do the same with ADF based applications. Tags: arquillian jsfunt adf glassfish embedded examples poc
- JBoss 7 und Arquillian
- Das Testen von J2EE war ja immer pain in the ass, dass kam JEE mit EJB 3, alles war ein POJO und siehe da: man brauchte keinen Application-Server mehr, um seine Logik zu testen (in den meisten Fällen zumindest). Dann kam Arquillian, weil man sah, dass man ggf. doch mal einen Application-Server benötigt für sinnvolle Tests. Tags: arquillian maven integration jbossas7 article german
- Arquillian with NetBeans, GlassFish embedded, JPA and a MySQL Datasource
- This is an, let's call it accidental post. I was looking into transactional CDI observers and playing around with GlassFish embedded to run some integration tests against it. But surprisingly this did not work too well and I am still figuring out, where exactly the problems are while using the plain embedded GlassFish for that. In the meantime I switched to Arquillian. Tags: arquillian integration cdi jpa glassfish tutorial
About the Project
|
|
|
Arquillian-Core all builds
- Arquillian-Core #89 (stable)
Recent Commits
- Aslak Knutsen ARQ-670 Context-Root should not include Archive extension
- Feb 8, 2012 12:49 PM
- Marek Schmidt ARQ-717 add partition property
- Jan 20, 2012 4:50 AM
- Alexis Hassler ARQ-715 Add a getter for ProtocolMetaData.contexts
- Jan 2, 2012 10:11 AM
- Aslak Knutsen ARQ-703 prepare for next development iteration
- Dec 15, 2011 6:47 PM
- Aslak Knutsen ARQ-703 prepare release 1.0.0.CR7
- Dec 15, 2011 6:47 PM
- View more recent commits
Testimonials
All in all Arquillian is a really great integration testing tool with full of potential. It's just great that the JBoss guys are aiming to provide support for almost all widely used application servers and web containers. Bartosz Majsak This reminds me of the old Cactus project back in the day, but done much, much better. Laird Nelson
|
