|
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
- +Arquillian will be represented at JavaOne Tokyo 2012 by +Ray Ploski and +Takayuki Konishi Rapid ...
- Feb 22, 2012 10:55 AM
- +Arquillian will be represented at JavaOne Tokyo 2012 by +Ray Ploski and +Takayuki KonishiRapid development of Java EE applications using Forge and Arquillianhttps://oj-events.jp/public/session/view/190Introduction to automated Java EE testing by testing incontainerhttps://oj-events.jp/public/session/view/201Must see! :)ホーム: JavaOne Tokyo 2012日本オラ…
- JavaEE6 Lab with +Feb 21, 2012 7:04 PM
- JavaEE6 Lab with +Arquillian at DEVOXX France, presented by +Antoine Sabot-Durand +Alexis Moussine-Pouchkine +Alexis HasslerAntoine Sabot-Durand originally shared this post:Concerning #devoxxfr so far my following talk where accepted :A University on #CDI #SeamSocial and #Java_Social and #Weld_OSGI that I'll do with +Mathieu ANCELIN …
- Arquillian Live Hackfest #devconf
- Feb 17, 2012 9:14 AM
- Arquillian Live Hackfest #devconfLukáš Fryč originally shared this post:We would like to invite you to brain-storm over the future of testing!Arquillians are invading Brno these days and by recent measurements,we have identified a massive talent concentration in testing space.It doesn't matter what you know about Arquillian,you can join us and shar…
Latest Community Blogs and Articles
- Java Spotlight #51: Live at Java One - Java Platform Timelines & Duke Choice Award Winners
- This live recording at JavaOne 2011 San Francisco features Java Platform timelines presented at Java One 2011 San Francisco in the news segment and interviews with the 2011 Duke Choice Award Winners for the feature interview. Tags: podcast javaone arquillian award dukeschoice
- Migration to Arquillian
- How the RichFaces functional tests suites were migrated to Arquillian framework Tags: arquillian ajocado selenium drone migration
- Next Generation Application Development: Java Enterprise Testing
- Seit der Einführung von Java EE ist das Testen von Enterprise-Applikationen schwieriger geworden. Ein wesentlicher Grund liegt darin, dass Komponenten in einer Enterprise-Architektur selten in sich abgeschlossen sind, sondern mit vielen anderen Komponenten des Systems zusammenspielen. Java-EE-6-Container wie Glassfish v3 oder JBoss AS6 sind zum Beispiel für das Dependency Management und die Persistenz zur Datenbank (JPA 2.0) verantwortlich. Das Zusammenspiel der Geschäftslogik mit anderen Komponenten wird in Enterprise-Applikationen immer wichtiger, ähnlich wie die Implementierung der Geschäftslogik selbst. Vor allem deklarative Beschreibungen, wie Dependency Injection und Transaktionskontrollen, müssen daraufhin getestet werden, ob sie die gewünschten Aufgaben erfüllen. Unit-Tests und Mock-Tests können nur einen begrenzten Teil dieser Überprüfungen übernehmen. Integrationstests spielen daher eine immer wichtigere Rolle. Tags: arquillian testing article german
About the Project
|
|
|
Arquillian-Core all builds
- Arquillian-Core #90 (stable)
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
|
