Skip to content
Snippets Groups Projects
Commit 47e1cba7 authored by Rafi Zereselasie (raz070)'s avatar Rafi Zereselasie (raz070)
Browse files

Added test to add shift test suite (i forgot to push this for the alpha sadge)

parent abb80af8
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ public class TestModel {
testModel.printAllEmployees();
System.out.println("employees size: " + testModel.employeeSize());
// Make the schedule (Add shifts)
// Make the schedule (Add shifts) Rafi's Test Suite
System.out.println();
System.out.println("Making the schedule (Add shifts) Test Suite:\nAdding Freya and Mike as employees.");
......@@ -81,6 +81,20 @@ public class TestModel {
System.out.println("Actual output: ...");
testModel.printAllShifts();
System.out.println();
System.out.println("Adding the same shift for Mike from 5-9 on March-03-2022.");
testModel.addShift(3, "2022-03-13", 1700, 2100);
try {
TimeUnit.SECONDS.sleep(1);
} catch (InterruptedException exception) {
System.out.println("Sleep");
}
System.out.println("Expected output: [allShifts, 2.2022-03-13.900.1700.1, 3.2022-03-13.1700.2100.2] ");
System.out.println("Actual output: ...");
testModel.printAllShifts();
testModel.removeEmployee("2");
testModel.removeEmployee("3");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment