|
Thanks for looking into this Steve. Assuming you have JDK 8 installed, to run the test, install Glassfish 4.1 (from https://glassfish.java.net/), MySQL (from www.mysql.org) and install maven. Add to your path the bin folder of glassfish and the bin folder of Maven. Set the variable GFHOME as the installation folder for glassfish.
Setup the database:
-
mysql -u root -p
(type the root password for your database installation) sql> create database test; sql> grant all privileges on test.* to 'test'%'%' identified by 'test'; sql> exit;
Unzip the Hibernate-GF-Test.zip file in a folder, cd to that folder and:
-
mvn install
-
cd Hibernate-GF-Test-ear/target
-
asadmin start-domain
(wait until glassfish is up and running)
-
asadmin deploy Hibernate-GF-Test-ear-1.0-SNAPSHOT.ear
-
cd $ {GFHOME}
/glassfish/domains/domain1/logs
-
tail -500f server.log
Here you will see the exceptions showing up when the Timer event is fired up (it is every minute).
I have little experience on creating automated tests. This test requires a Timer in the application server to fire up, a MySQL installation and a Glassfish installation I cannot think of a way to easily automate it, but again, I am not an expert on that.
|