This is a Java ATM Simulation application built for a Capstone Project.
- PIN-based login (account number + PIN)
- Deposit / Withdraw
- Account balance display
- Transaction history
- Export / import transaction history (CSV)
- Persistence using file serialization or JDBC (MySQL / H2)
- Unit tests (JUnit 5)
src/main/java/com/atm/model— Domain models (Account,Transaction)src/main/java/com/atm/repository— Persistence implementations (file + JDBC)src/main/java/com/atm/controller— Console application controller (ATMController)src/main/java/com/atm/view— Console-based UI (ConsoleView)src/main/java/com/atm/Main.java— Console entrypoint
From the project root:
mvn clean packagejava -cp target/atm-simulation-1.0.0.jar com.atm.Mainjava -cp target/atm-simulation-1.0.0.jar com.atm.Main --jdbcThe application will prompt for a JDBC URL, user, and password.
Run unit tests with:
mvn test- File-backed:
data/accounts.dat(created automatically) - JDBC-backed (MySQL example):
accountsandtransactionstables created automatically
Transaction CSV format:
timestamp,type,amount,balanceAfter
2026-01-01T12:00:00,DEPOSIT,100.00,100.00