Depending on JSF and EJB and ready to run on JBoss WildFly 8.0.0.Final and Oracle Glassfish 4.0.
You find a running Version with WildFly on OpenShift, the RedHat Cloud:
Source Code ist hosted on Github:
The Domain Modellcontains all basic Relationships between Entities like OneToMany, ManyToOne and also ManyToMany:
Pageflowis complex enough to be interesting for Functional Tests with Selenium2 Webdriver, Arquillian Drone and Graphene:
Some Example Screen Shots
install JBoss Wildflyinstall JBoss Wildfly 8.0.0.Final from http://wildfly.org/downloads/
to e.g. /Users/tw/srv/wildfly-8.0.0.Final/
start JBoss by: cd /Users/tw/srv/wildfly-8.0.0.Final/bin ; ./standalone.sh
install Glassfish 4I installed Netbeans 7.4 with Glassfish 4.0 from https://netbeans.org/downloads/
starting on Mac OSX:
For Starting the JavaDB Database with jdk1.7.0_51 refer to:
Functional Tests with Selenium2 Webdriver, Arquillian Drone and GraphenePetclinic is tested on Wildfly and GlassFish using the Arquillian ecosystem.
Only one profile can be active at a given time otherwise there will be dependency conflicts.
mvn clean install -Pwildfly-managedThis profile will install a Wildfly server and start up the server. Useful for CI servers.
mvn clean install -Pwildfly-remoteThis profile requires you to start up a Wildfly server outside of the build. Useful for development to avoid the server start up cost per sample.
mvn clean install -Pglassfish-remoteThis profile requires you to start up a GlassFish 4 server outside of the build. Each sample will then reuse this instance to run the tests. Useful for development to avoid the server start up cost per test.
mvn clean install -Pglassfish-managedThis profile will install a Glassfish 4 server and start up the server. Useful for development, but has the downside of server startup per Test. You have to start a JavaDB (Derby) Server outside of the build before running the Test.
To learn more about Arquillian please refer to the Arquillian Guides
JSF 2.2 and RichFaces 5Calendar and PickList are RichFaces Components.
They also provide WebElements for Arquillian+Graphene Testing.
build and rungit clone https://github.com/phasenraum2010/javaee7-petclinic.git
build project with:
mvn clean install wildfly:deploy
open url in browser: http://localhost:8080/javaee7-petclinic-1.3-SNAPSHOT/
First Stepsadd some PetTypes like dog,cat,mouse,...
add some Specialties for Vetinarians like dentist, anesthetist, radiology,...
add a Vetinarian
add an Owner, add him am a Pet and his Pet a visit.