Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parking System

A command line app for managing the parking system. This app uses Java to run and stores the data in Mysql DB.

Prerequisites

After installing MySQL, you will be asked to configure the password for the default `root` account.
This code uses the default root account to connect and the password is set as `pass`. 
If you add another user/credentials make sure to change the same in the `credentials.properties` file.

Prepare the database

  • Open a command prompt to start MySQL server :

    • Enter this command to be connected as root account :
      mysql -u root -p
      
    • Type your password to start the server
  • Copy/paste SQL scripts :

    • Enter this script to create databases prod and test

Run the application

There are 2 possibilities :

  • Open the project with your IDE and run the main method of App class.
  • Or open a prompt :
    • move to the root of the project you cloned on your local machine
    • enter mvn clean install command to compile, test, package and install properly the project
    • enter mvn exec:javacommand to start the application

Goal

As part of this project, I achieved the following objectives :

  1. Fork this project applying Getting Started
  2. Correct calculation method
  3. Implement new features :
    • Free parking within 30 minutes
    • 5% Loyalty discount
  4. Write unit tests
  5. Write integration tests

Class Diagram

SureFire Report

FailSafe Report

Jacoco Unit Tests Coverage

Jacoco Integration Tests Coverage

SpotBug Report

About

Project 4 : Test the implementation of a new Java feature

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages