Class LoadTest
java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.persistency.LoadTest
Tests for Load class.
- Author:
- Gideon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test if the previousGamePresent method returns false when a previous game is not present.void
Test if the previousGamePresent method returns true when a previous game is present.void
getFile()
Test if the getFile method loads the file with the correct name.void
Is previousGameInfo correct.void
previousGameInfo is default when no previous game is present.void
loadJar()
Test if the loadJar method creates a classloader.void
Test to see if the load method can load a level correctly.void
Test if the previousGame method loads the correct level.void
Test 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.
-