Class SaveTest

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

public class SaveTest extends Object
Tests for Save class.
Author:
Gideon
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Test to see if the addPoint method adds the correct attributes to the element.
    void
    Test to see if the save method can save a level.
    void
    Test to see if the save method can save the inventory of the player.
    void
    Test to see if the save method can save level 2 correctly.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SaveTest

      public SaveTest()
  • Method Details

    • saveGame

      @Test public void saveGame()
      Test to see if the save method can save a level.
    • saveLevel2

      @Test public void saveLevel2()
      Test to see if the save method can save level 2 correctly.
    • saveInventory

      @Test public void saveInventory()
      Test to see if the save method can save the inventory of the player.
    • addPoint

      @Test public void addPoint()
      Test to see if the addPoint method adds the correct attributes to the element.