DangerousDoughnuts (Team D) PSD3 voting system exercise
(Obviously, you need to have Apache Ant installed to proceed)
These ant commands are interesting:
ant build— builds .class files to bin/
ant apidocs— build API documentation for .java files
ant junit— execute test cases
ant run— execute the CLI
will build class files and create api documentation.
Launching your test cases
Our test cases have been provided in
tests/ folder. You may add any more
JUnit tests, only requirement is all test files must include Test in their
filenames, otherwise they will not be noticed by JUnit.
This package bundles JUnit version 4.10. Please note your Ant installation must have JUnit support library anyway!
Configuring test fixtures
These files contain fixtures:
At the moment there are two electorates hard coded: level 3 and level 5. Electorate names cannot be changed, but users can be added and removed.
UserList.csvis a tab-separated file of users registered in the system. Fields are as follows:
- First name
- Last name
- ElectionManager flag ("true" or "false")
Level3ElectorateGUIDs.csvcontains GUIDs for Level 3 electorate.
Level5ElectorateGUIDs.csvcontains GUIDs for Level 5 electorate.
VotingSystem interface implementation
The implementation of the VotingSystem.java interface is located in the VotingSystemImpl class inside the uk.ac.glasgow.demosocs.impl package. The command line interface is implemented in VotingSystemCommandLineUI class inside uk.ac.glasgow.demosocs.impl.ui.
In the event of a (What a) Terrible Failure, please direct your hope to firstname.lastname@example.org.