Skip to content

fsusam/money-transfer-jee

Repository files navigation

Money Transfer with JEE

Simulate a money transfer between accounts. Provide Restful API with Wildfly application server

Prerequisites

  • Apache Maven 3.5.4 or above
  • java version "1.8.0_181"
  • Postman or Curl (Optional for test)

Running And Tests

Running

Run the project

mvn clean install -Pstart-wildfly

Sample customers are created when the project up.

Sample Customers

Name : CUSTOMER1
IBAN : IE42AIBK11116455591111
Balance : 100
---------------------------
Name : CUSTOMER2
IBAN : IE42AIBK22226455592222
Balance : 0

Manual Test

Sample JSON Data

{
	"sourceIban": "IE42AIBK11116455591111",
	"targetIban": "IE42AIBK22226455592222",
	"amount": 100
}

Endpoint

http://localhost:8080/tutorial/transferMoney

you should use POST method and add "Content-Type : application/json" to your http request

Sample Postman Header Postman Header

Sample Postman Body Postman Body

Expecting http result is 200 if everything is ok Postman Success Result

Or you can get 500 status code with error code and description in case of fail Postman Fail Result

you can shutdown wildfly by using

Ctrl+C

or

mvn wildfly:shutdown

Automated Test

All Fail and Success cases are tested

mvn clean install -Ptest-suite

Design

Entity UML Diagram

Entity UML Diagram

Component UML Diagram

Component UML Diagram

Flow Chart UML Diagram

Flow Chart UML Diagram

Sequence UML Diagram

Sequence UML Diagram

These UML diagrams can be edited on draw.io

Note

Scheduler Service has been not implemented for the current version (1.0-SNAPSHOT). It will be planned to next version

Releases

No releases published

Packages

No packages published