Commit bc99270c authored by Rohit Prasad's avatar Rohit Prasad

Add information about JUnit tests

parent 3da4b7da
...@@ -25,3 +25,6 @@ This class implements the logic for the program. It maintains two queues for ord ...@@ -25,3 +25,6 @@ This class implements the logic for the program. It maintains two queues for ord
# Algorithm # Algorithm
The program currently maintains two linked lists - one for orders of type buy, and one for orders of type sell. The program currently maintains two linked lists - one for orders of type buy, and one for orders of type sell.
Pending orders are stored in these linked lists in chronological order. It finds the matches for an order through a linear scan and removes matched orders or modifies a partially matched order. If trade is possible, matched orders are return to Main class and displayed to the user. Pending orders are stored in these linked lists in chronological order. It finds the matches for an order through a linear scan and removes matched orders or modifies a partially matched order. If trade is possible, matched orders are return to Main class and displayed to the user.
# JUnit Tests
JUnit tests for a class is provided in file with same class name appended with "Test". For example, tests for OrderMatching class is in OrderMatchingTest class.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment