Behaviour-driven developed (BDD) CLI and GUI application for registering vehicles and owners for Vehicle Testing New Zealand (VTNZ) Warrant of Fitness (WoF) test appointments.
Developed with a local SQLite database in limited time for infinite good reasons. GUI is included later when migrating from Java 8 to 16 given automated user-story acceptance testing with Cucumber and Gherkin is being assessed, with all test cases passing.
A user of the vehicle WoF registration app can:
- register, login, logout, edit and remove a user account
- register, edit, and remove their vehicle(s) from a user account
- edit history for a vehicle registration
There are two existing vehicle owner registrations in the DB sample:
email: one@test.com
password: one
email: two@test.com
password: two
- Java 16
- Maven
Navigate to VehicleRegistration/
containing the pom.xml
file, then execute in a terminal:
Run 35 acceptance tests by executing:
mvn clean -Dtest=GenericTestRunner test
Run 61 unit tests by executing:
mvn clean test
To package to a .jar
file, navigate to VehicleRegistration/
containing the pom.xml
file and execute:
mvn clean compile assembly:single
Following a successful maven build of the project,
move WoF-1.0-jar-with-dependencies.jar
to the VehicleRegistration/
root directory, so it is with the DB files.
java -jar WoF-1.0-jar-with-dependencies.jar
java -jar WoF-1.0-jar-with-dependencies.jar gui