Class | Description |
---|---|
GridPrintoutTester |
A class for testing the StudentGridPrintout, not for
outside use
|
P4AssertionSet |
Custom AssertionSet extensions for P1.
|
PreQATest |
This test checks that the tests written by test writers
follows convention and has the appropriate annotations.
|
PreTest01_RequiredClassesPresent |
Fails if the submission has any required classes either missing
or not declared public.
|
PreTest02_RequiredMethodsPresent |
Fails if the submission has any required public methods that are either missing
or not declared public.
|
PreTest03_RequiredConstructorsPresent |
Fails if the submission has any required public constructors either missing
or not declared public.
|
PublicServiceTest01_OnlyOneSystemInScanner |
This test looks through a student's source files and counts the number of
times it sees Scanner(System.in) (allowing for optional whitespace), and
if there is more than one occurrence, fails.
|
SeaCowPuzzle |
An abstraction of a puzzle - used for handling the parsing of
input files, and to easen the creation of expected strings.
|
SeaCowPuzzleTester |
A class for testing the SeaCowPuzzle, not for
outside use
|
SeaCowShip |
A ship class used by the SeaCowPuzzle.
|
SeaCowSquare |
Square class used by the SeaCowPuzzle, which has an array of Squares
Name chosen so as to avoid name conflicts with student files.
|
StudentGridPrintout |
A class for encapsulating the printout a student
gives us when they print their puzzle grid.
|
Test00_MainMenu_CorrectPrintout |
Tests whether the main menu and the prompt are displayed correctly when the
program is started for the first time.
|
Test01_MainMenu_InvalidInput |
The main menu prompt is tested with the following 2 types of invalid input:-
Keying in the character 'x' at the prompt.
Keying in the number 38 at the prompt.
On receiving invalid input, the student program is expected to just display the main menu again.
|
Test10_LoadPuzzle_BasicFunctionality |
The load puzzle option is being tested by loading a single puzzle.
|
Test11_LoadPuzzle_InvalidFile |
The 'Load a puzzle' option is selected at the main menu.
|
Test12_LoadPuzzle_MultiplePuzzlesAppearInList |
The load puzzle option is being tested by loading 4 puzzles.
|
Test20_PlayPuzzle_MenuWhenNoPuzzleLoaded |
Without loading any puzzles, the 'Play a puzzle' option is selected at the main menu.
|
Test21_PlayPuzzle_StartingGrid |
This test loads puzzle1.txt and tests if the initial displayed grid has the following:
1.
|
Test22_PlayPuzzle_StartingHints |
This test loads puzzle4.txt and tests if the initial displayed grid has the hints correctly specified across the rows and cols.
|
Test30_PlayPuzzle_Prompts |
This test loads puzzle5.txt and tests if the displayed prompt is correct.
|
Test31_PlayPuzzle_MarkSquare |
This test loads puzzle3.txt, plays a four moves (two ships and two water) and tests if the resulting puzzle is correct after each move.
|
Test32_PlayPuzzle_MarkInitiallyRevealedSpot |
This test loads puzzle6.txt, tries to change a location that is revealed and verifies if the displayed message is correct.
(-1) points if the displayed message is incorrect
|
Test33_PlayPuzzle_Quitter |
This test loads puzzle3.txt, places a ship, and then quits.
|
Test40_PlayPuzzle_Win |
Play a game with a puzzle with one unrevealed square.
|
Test41_PlayPuzzle_Lose |
Play a game with a puzzle with two unrevealed squares.
|
Test50_Quit_BasicFunctionality |
This test starts up a student submission and goes straight to the quit
menu.
|
Test52_Quit_OnePlayer |
Play a game with a puzzle with one unrevealed square.
|
Test53_Quit_InvalidFileName |
Give it an invalid file name such as drGorunes/secretLab/evilPlan.txt (directories won't exist)
|
Test60_ListPlayers_NoPlayers |
Selects option 1 (list players) then ensures that the program redisplays the main menu.
|
Test61_ListPlayers_OnePlayerOnePuzzle |
Wins a puzzle, enters initials of 3 capital letters, and then goes to list
players to check if the player completed the puzzle.
|
Test62_ListPlayers_NoCreditForQuitters |
Plays a puzzle, completes it, enter normal initials, plays a different
puzzle, and quits immediately.
|
Test63_ListPlayers_HandlingOfInitials |
Plays a puzzle then enters initials that are lower case and longer than 3 characters.
|
Test64_MultiplePuzzlesAndPlayers |
One player plays two puzzles and another plays one puzzle.
|
TestingUtil |
ToolBox-specific Utility method, containing constants and convenience
methods for the current test suite.
|
TestX0_Style_EightyCharacters |
This test looks through a student's source files and counts the number of
characters in excess of 80 characters.
|
TestX1_Style_Naming |
Checks that students followed proper Java naming conventions for
classes, methods, and fields.
|
TestX2_Requirements_NoPublicFields |
Checks that no student code contains non-private fields.
|
TestX3_Requirements_NoStaticFields |
Fails if the submission contains any static non-final fields.
|
TestX4a_Requirements_NoAdditionalPublicMethods |
Fails if the submission contains any public methods that were not specified -
this is the more lenient version which only inspects public methods.
|
TestX4b_Requirements_NoAdditionalMethods |
Fails if the submission contains any methods that were not specified - this
is the more strict version which inspects all methods - regardless of access
specifier
|
TestX5_Requirements_NoArrays |
Checks that no student code contains array variables other than the main parameter.
|
TestXX_DummyTest |
A dummy test for Stephen and Shree to look at
|