Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATM Simulation Capstone Project

This is a Java ATM Simulation application built for a Capstone Project.

✅ Features

  • 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)

🧱 Project Structure

  • 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

🧰 Build (Maven)

From the project root:

mvn clean package

▶️ Run (Console)

Default (file-backed)

java -cp target/atm-simulation-1.0.0.jar com.atm.Main

JDBC (MySQL/H2)

java -cp target/atm-simulation-1.0.0.jar com.atm.Main --jdbc

The application will prompt for a JDBC URL, user, and password.

🧪 Tests

Run unit tests with:

mvn test

💾 Data Storage

  • File-backed: data/accounts.dat (created automatically)
  • JDBC-backed (MySQL example):
    • accounts and transactions tables created automatically

📄 CSV Import/Export

Transaction CSV format:

timestamp,type,amount,balanceAfter
2026-01-01T12:00:00,DEPOSIT,100.00,100.00

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages