docky37 / parkingsystem Goto Github PK
View Code? Open in Web Editor NEWThis project forked from openclassrooms-student-center/parkingsystem
Parking System App
This project forked from openclassrooms-student-center/parkingsystem
Parking System App
Pop-up "Could not run test" with "No tests found with test runner 'JUnit 5'" message when trying to run individual test with right click & Run AS Junit test.
Console :
java.lang.NoClassDefFoundError: org/junit/platform/commons/PreconditionViolationException
at org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader.createUnfilteredTest(JUnit5TestLoader.java:75)
at org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader.createTest(JUnit5TestLoader.java:66)
at org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader.loadTests(JUnit5TestLoader.java:53)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:525)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
Caused by: java.lang.ClassNotFoundException: org.junit.platform.commons.PreconditionViolationException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
MySQL Password written in Plain text in the code (DatabaseConfig).
As a user, I want to be able to park for a short amount of time without having to pay.
We decided to allow our users to park for free when they stay less than 30 min, especially since some people might go into the parking garage, not find a spot, then leave immediately after.
In this scenario, the user enters the car park after entering their license plate number. The user gets out of the parking garage by providing their number again. If they have stayed for under 30 minutes, they don't need to pay anything. The fee should be $0.
Tasks
As a user, I want to get a discount when I use the parking garage regularly.
In order to improve user retention, we decided to offer recurring users a 5% discount every time they come back to our parking lot.
Tasks
As a user, I want to be able to park for a short amount of time without having to pay.
We decided to allow our users to park for free when they stay less than 30 min, especially since some people might go into the parking garage, not find a spot, then leave immediately after.
In this scenario, the user enters the car park after entering their license plate number. The user gets out of the parking garage by providing their number again. If they have stayed for under 30 minutes, they don't need to pay anything. The fee should be $0.
Tasks
1. Write the unit test that checks this behavior
2. Implement the feature in the code
11 bugs and 47 smell codes identified by Sonar Cloud.
Rename RegularCustomer as RecurringUser to respect ubuquitus language of Domain Driven Design.
Correct spelling of vehicle in getVehichleRegNumber method.
ERROR StatusLogger No Log4j 2 configuration file found.
As a user, I want to get a discount when I use the parking garage regularly.
In order to improve user retention, we decided to offer recurring users a 5% discount every time they come back to our parking lot.
Tasks
First Checkstyle Results : 362 errors
7 in com/parkit/parkingsystem/App.java | 0 | 0 | 7
32 in com/parkit/parkingsystem/config/DataBaseConfig.java | 0 | 0 | 32
2 in com/parkit/parkingsystem/config/package-info.java | 0 | 0 | 2
15 in com/parkit/parkingsystem/constants/DBConstants.java | 0 | 0 | 15
6 in com/parkit/parkingsystem/constants/Fare.java | 0 | 0 | 6
2 in com/parkit/parkingsystem/constants/ParkingType.java | 0 | 0 | 2
2 in com/parkit/parkingsystem/constants/package-info.java | 0 | 0 | 2
5 in com/parkit/parkingsystem/dao/IParkingSpotDAO.java | 0 | 0 | 5
8 in com/parkit/parkingsystem/dao/ITicketDAO.java | 0 | 0 | 8
35 in com/parkit/parkingsystem/dao/ParkingSpotDAO.java | 0 | 0 | 35
55 in com/parkit/parkingsystem/dao/TicketDAO.java | 0 | 0 | 55
2 in com/parkit/parkingsystem/dao/package-info.java | 0 | 0 | 2
25 in com/parkit/parkingsystem/model/ParkingSpot.java | 0 | 0 | 25
51 in com/parkit/parkingsystem/model/Ticket.java | 0 | 0 | 51
2 in com/parkit/parkingsystem/model/package-info.java | 0 | 0 | 2
28 in com/parkit/parkingsystem/service/FareCalculatorService.java | 0 | 0 | 28
4 in com/parkit/parkingsystem/service/IFareCalculatorService.java | 0 | 0 | 4
5 in com/parkit/parkingsystem/service/IParkingService.java | 0 | 0 | 5
10 in com/parkit/parkingsystem/service/InteractiveShell.java | 0 | 0 | 10
43 in com/parkit/parkingsystem/service/ParkingService.java | 0 | 0 | 43
2 in com/parkit/parkingsystem/service/package-info.java | 0 | 0 | 2
4 in com/parkit/parkingsystem/util/IImputReaderUtil.java | 0 | 0 | 4
13 in com/parkit/parkingsystem/util/InputReaderUtil.java | 0 | 0 | 13
2 in com/parkit/parkingsystem/util/package-info.java | 0 | 0 | 2
1 in db.properties | 0 | 0 | 1
1 in log4j2.properties | 0 | 0 | 1
The mysql-connector-java-8.0.19.jar has been installed as a referenced library in Eclipse.
It needs to be removed and then installed as Maven dependency.
ERROR ParkingSpotDAO - Error fetching next available slot
java.sql.SQLException: The server time zone value 'Paris, Madrid' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specifc time zone value if you want to utilize time zone support.
The integration test testParkingLotExit() start with a call off another integration test (testParkingACar()).
Fare / FareCalculator / FareCalculatorTest use Doubles.
Study pros & cons to use BigDecimal instead of these Doubles.
Sometimes the Integration test fails.
It appends when updateInTime in DataBasePrepareService rounded up IN_TIME.
For example IN_TIME = ...14:40:58 and OUT_TIME = ...15:40:57.9238
In this case, duration is equal to 59 minutes instead of 1 hour and rate is equal to 1.47 instead of 1.50 โฌ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.