Class LoadTest

java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.persistency.LoadTest

public class LoadTest extends Object
Tests for Load class.
Author:
Gideon
  • 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.