Course project for SFedU. This API provides some tools for control your money.
- Refactoring for all DataProviders done
- Tests for all DataProviders' CRUD are ready with the cleanest code
- Added tests for Use Cases methods
- Added good CLI for Use Cases (but not for CRUD);
- manageBalance(String action, long transactionId) — Root use case for managing current balance
- calculateBalance() — Calculates current balance using all written transactions and appends it to Balance list
- displayIncomesAndOutcomes() — Displays all written transactions
- repeatTransaction(long transactionId) — Repeats selected transaction
- makePlanBasedOnTransaction(long transactionId) — Creates plan based on selected transaction
- managePlans(long planId, boolean execute) — Root use case for managing existing plans
- displayPlans() — Displays all written plans
- executePlanNow(long planId) — Appends transaction of selected plan
- For environment.properties file:
-Dprops
- For log4j2 file:
-Dlog4j2.configurationFile
CSV
XML
JDBC
java -jar
-Dprops=<your .properties file>
-Dlog4j2.configurationFile=<your log4j2 file>
./Accounter.jar
XML MANAGEBALANCE
CSV MANAGEBALANCE repeat <transactionId>
JDBC MANAGEBALANCE plan <transactionId>
XML MANAGEPLANS
CSV MANAGEPLANS <planId>
JDBC MANAGEPLANS <planId> true
java -jar -Dprops=./environment.properties -Dlog4j2.configurationFile=./log4j2.xml ./Accounter.jar XML MANAGEBALANCE
java -jar -Dprops=./environment.properties -Dlog4j2.configurationFile=./log4j2.xml ./Accounter.jar XML MANAGEBALANCE REPEAT 21
java -jar -Dprops=./environment.properties -Dlog4j2.configurationFile=./log4j2.xml ./Accounter.jar CSV MANAGEBALANCE PLAN 22
java -jar -Dprops=./environment.properties -Dlog4j2.configurationFile=./log4j2.xml ./Accounter.jar CSV MANAGEPLANS
java -jar -Dprops=./environment.properties -Dlog4j2.configurationFile=./log4j2.xml ./Accounter.jar JDBC MANAGEPLANS 31 TRUE
java -jar -Dprops=./environment.properties -Dlog4j2.configurationFile=./log4j2.xml ./Accounter.jar JDBC MANAGEPLANS 32 FALSE
- Maybe make CRUD for CLI?
(づ。◕‿‿◕)づ
All known fixed.