page8
Software Engineering Group Project 20: Design Specification/1.0 (Release)
4.4.2
JavaFXTest
Class that contains methods to test that the application class is correctly storing the full list of dictionary
definitions. This class will also test that the elements such as the sliding menu and score counter are working as
intended, along with testing that scenes are ending and transitioning correctly when applicable.

@test public void testDefinition() - Tests to confirm that the dictionary definitions loaded match to an
identical base set.

@test public void testScoreCounter() - Test to confirm that the user score counter correctly increases
by increments on one.

@test public void testFindWord() – A preset search test to confirm that words are being searched for
correctly.

@test public void testAddWord() - A test to check that a new word is correctly added and saved to
the JSON file.

@test public void testRemoveWord() - A test to check that the JSON file is correctly updated when a
word is removed.
4.4.3
SelfAssessmentTest
This class will test that the lists pulled in the self-assessment package are indeed random, while also pulling the
matching data from the dictionary.

@test public void testRandomReturn() - Test to confirm that the random number return is working
correctly.

@test public void testAvailableSelfAssessment() - Test to check and confirm that the game types are
either made available or are locked off depending on the number of practice list questions.

@test public void testUserAnswer() – Test that will check that an input by a user is correctly checked
to the correct answer.
Aberystwyth University / Computer Science
Page 8 of 19