@Deployment(testable = false)
public static WebArchive createDeployment() {
return defaultArchive();
}
cd javaee7-samples/jaspic/async-authentication/Now we are ready to start testing. You can run all the tests in this sample by executing:
mvn test
Or you can run individual tests by executing one of the following:mvn test -Dtest=AsyncAuthenticationPublicTest
@Deployment(testable = false)
public static WebArchive createDeployment() {
return defaultArchive();
}
This tests that an async response works at all in the mere presence of a JASPIC SAM (that does nothing)
@Test
public void testBasicAsync() throws IOException, SAXException {
String response = getFromServerPath("public/asyncServlet");
assertTrue(response.contains("async response"));
}
There's a lot more about JavaEE to cover. If you're ready to learn more, check out the other available samples.
git clone git://github.com/javaee-samples/javaee7-samples.git
cd javaee7-samples/jaspic/async-authentication/
Do the changes as you see fit and send a pull request!
Good Luck!