Package games.memory

Examples of games.memory.Memory


   */
    @Test
    public void testInitilization()
    {
        Memory.reset();
        Memory memory = Memory.getInstance();
        Difficulty diff = new MockDifficulty();
        memory.setDifficulty(diff);
        assertEquals(10, memory.getLives());
    }
View Full Code Here


   */
    @Test
    public void testInitilization()
    {
        Memory.reset();
        Memory memory = Memory.getInstance();
        Difficulty diff = new EasyDifficulty();
        memory.setDifficulty(diff);
        assertEquals(10, memory.getLives());
    }
View Full Code Here

   */
  @Test
  public void testMockInitlization()
  {
    Memory.reset();
    Memory m = Memory.getInstance();
    MemoryState state = new MockMemoryState(m);
    m.setState(state);
    assertEquals(state, m.getState());
  }
View Full Code Here

   */
    @Test
    public void testInitilization()
    {
        Memory.reset();
        Memory memory = Memory.getInstance();
        Difficulty diff = new HardDifficulty();
        memory.setDifficulty(diff);
        assertEquals(5, memory.getLives());
    }
View Full Code Here

   */
  @Test
  public void testInitlization()
  {
    Memory.reset();
    Memory m = Memory.getInstance();
    MemoryState state = new EndGameState(m);
    m.setState(state);
    assertEquals(state, m.getState());
  }
View Full Code Here

   */
  @Test
  public void testEndGame()
  {
    Memory.reset();
    Memory m = Memory.getInstance();
    MemoryState state = new EndGameState(m);
    m.setState(state);
    state.handle();
    assertTrue(m.getState() instanceof PlayingState);
  }
View Full Code Here

   */
  @Test
  public void testInitlization()
  {
    Memory.reset();
    Memory m = Memory.getInstance();
    MemoryState state = new PlayingState(m);
    m.setState(state);
    assertEquals(state, m.getState());
  }
View Full Code Here

   */
  @Test
  public void testEndGame()
  {
    Memory.reset();
    Memory m = Memory.getInstance();
    MemoryState state = new PlayingState(m);
    m.setState(state);
    state.handle();
    assertTrue(m.getState() instanceof EndGameState);
  }
View Full Code Here

TOP

Related Classes of games.memory.Memory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.