Compare commits
3 Commits
9641825200
...
TestImplem
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d05bb921a | |||
| 8c4849fdf0 | |||
| a5378868ea |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -36,6 +36,11 @@ sourceSets {
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
testLogging {
|
||||
events "passed", "skipped", "failed"
|
||||
exceptionFormat "full"
|
||||
showStandardStreams = true
|
||||
}
|
||||
finalizedBy jacocoTestReport
|
||||
}
|
||||
jacocoTestReport {
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -58,5 +58,13 @@ public class GoodCasesTest {
|
||||
manager.removeTask(taskId);
|
||||
assertThrows(manager.getTask(taskId) instanceof IllegalArgumentException);
|
||||
}
|
||||
@Test
|
||||
@DisplayName("Check Getters")
|
||||
public void assertGettersWorkCorrectly() {
|
||||
int workerId = manager.createWorker("Alfred");
|
||||
assertEquals(manager.workerMap.get(workerId).getName(), "Alfred");
|
||||
//This one may be somewhat nonsensical, but it ensures the getId works so one may iterate over the workerMap
|
||||
assertEquals(manager.workerMap.get(workerId).getId(), workerId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user