Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Tasks
1. Fully implement each of the classes and interfaces described in the Javadoc.
2. Write JUnit 4 tests for all the methods in the following classes:
Gate (in a class called GateTest)
TaskList (in a class called TaskListTest)
Conformance
Conformance is marked starting with a mark of 10.
Every single occurrence of a conformance violation in your solution then results in a 1 mark deduction, down to a minimum of 0. Note that multiple conformance violations of the same type
will each result in a 1 mark deduction.
Conformance violations include (but are not limited to):
Placing files in incorrect directories.
Incorrect package declarations at the top of files.
Using modifiers on classes, methods and member variables that are different to those specified
in the Javadoc. Modifiers include private, protected, public, abstract, final, and
static. For example, declaring a method as public when it should be private.
Adding extra public methods, constructors, member variables or classes that are not described in the Javadoc.
Incorrect parameters and exceptions declared as thrown for constructors.
Incorrect parameters, return type and exceptions declared as thrown for methods.
Incorrect types of public fields
JUnit Test Marking
See Appendix B for more details.
The JUnit tests that you provide in GateTest and TaskListTest will be used to test both correct
5
and incorrect implementations of the Gate and TaskList classes. Marks will be awarded for test
sets which distinguish between correct and incorrect implementations5
. A test class which passes
every implementation (or fails every implementation) will likely get a low mark. Marks will be
rewarded for tests which pass or fail correctly.
There will be some limitations on your tests:
1. If your tests take more than 20 seconds to run, or
2. If your tests consume more memory than is reasonable or are otherwise malicious,
then your tests will be stopped and a mark of zero given. These limits are very generous (e.g. your
tests should not take anywhere near 20 seconds to run).
Electronic Marking
The electronic aspects of the marking will be carried out in a Linux environment. The environment
will not be running Windows, and neither IntelliJ nor Eclipse (or any other IDE) will be involved.
OpenJDK 11 will be used to compile and execute your code and tests.
It is critical that your code compiles.
If your submission does not compile, you will receive zero for Functionality (FT)