Arquillian is a revolutionary testing platform for Java and the JVM that enables developers to easily write and execute integration and functional tests for Java middleware, ranging from Java EE and beyond.
Arquillian Reference Guide
@RunWith(Arquillian.class)
public class GreeterTest {
@Deployment
public static JavaArchive createDeployment() {
return ShrinkWrap.create(JavaArchive.class, "test.jar")
.addClass(Greeter.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
}
@Inject
Greeter greeter;
@Test
public void should_create_greeting() {
Assert.assertEquals(
"Hello, Earthling!", greeter.createGreeting("Earthling"));
}
}
Cool but how can i interact with the database?
Are you kidding, dependent tests?
Cool…can I call a Rest endpoint from the test?
That one was nice but how about BDD?
Great! do you know Selenium?
Well done, anything about user acceptance testing?
Just a note about scenario initialization
Can we organize that in a Deployment Pipeline?