FrenchPress is a Java EE-based blogging system. It is intended to be a simple, yet non-trivial example of how one can build Java EE applications, using a variety of the technologies available in the platform.
FrenchPress uses Gradle to build. To build the deployable archive, execute:
$ gradle assemble
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:war
:assemble
BUILD SUCCESSFUL
Total time: 7.958 secs
Unit tests can be run with via the test
task, though most of the tests are integration tests, which are run via
Arquillian. The currently supported configurations are as follows:
Container | Mode | Task Name | Notes |
---|---|---|---|
GlassFish 4 |
Managed |
glassfishManagedTest |
Servers is expected to be in |
Embedded |
glassfishEmbeddedTest |
||
Remote |
glassfishRemoteTest |
Build currenly assumes an unsecured server with the default port configuration |
|
JBoss AS 7 |
Managed |
jbossManagedTest |
$ gradle --daemon glassfishEmbeddedTest
:compileJava
:processResources
:classes
:compileTestJava
:processTestResources
:testClasses
:glassfishEmbeddedTest
BUILD SUCCESSFUL
Total time: 29.774 secs
To assist in setting up a test environment, you can use a script called frenchpress.sh
. You can get help from the script
via the -?
command line parameter.