Class LoadTest
java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.persistency.LoadTest
Tests for Load class.
- Author:
- Gideon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest if the previousGamePresent method returns false when a previous game is not present.voidTest if the previousGamePresent method returns true when a previous game is present.voidgetFile()Test if the getFile method loads the file with the correct name.voidIs previousGameInfo correct.voidpreviousGameInfo is default when no previous game is present.voidloadJar()Test if the loadJar method creates a classloader.voidTest to see if the load method can load a level correctly.voidTest if the previousGame method loads the correct level.voidTest if the previousGame method loads level 1 when no previous game is present.
-
Constructor Details
-
LoadTest
public LoadTest()
-
-
Method Details
-
loadLevel
@Test public void loadLevel()Test to see if the load method can load a level correctly. -
getFile
@Test public void getFile()Test if the getFile method loads the file with the correct name. -
checkPreviousGamePresent
@Test public void checkPreviousGamePresent()Test if the previousGamePresent method returns true when a previous game is present. -
checkPreviousGameNotPresent
@Test public void checkPreviousGameNotPresent()Test if the previousGamePresent method returns false when a previous game is not present. -
loadPreviousGame
@Test public void loadPreviousGame()Test if the previousGame method loads the correct level. -
loadPreviousGameNotPresent
@Test public void loadPreviousGameNotPresent()Test if the previousGame method loads level 1 when no previous game is present. -
getPreviousGameInfo
@Test public void getPreviousGameInfo()Is previousGameInfo correct. -
getPreviousGameInfoNotPresent
@Test public void getPreviousGameInfoNotPresent()previousGameInfo is default when no previous game is present. -
loadJar
@Test public void loadJar()Test if the loadJar method creates a classloader.
-