Package org.jpacman.framework.controller

Examples of org.jpacman.framework.controller.IController


   * @throws FactoryException when calling MainUI.initialize() fails.
   */
  @Test
  public void testInitialize() throws FactoryException
    assertNull(mainUI.getGame());
    IController ghostMover = mainUI.getGhostController();
   
    mainUI.initialize();
   
    assertNotNull(mainUI.getGame());
    assertEquals(ghostMover, mainUI.getGhostController());
View Full Code Here


  @Test
  public void testWithGhostController() throws FactoryException
    mainUI.initialize();
    assertNull(mainUI.getGhostController());
   
    IController ghostMover1 = new RandomGhostMover(mainUI.getGame());
    IController ghostMover2 = new RandomGhostMover(mainUI.getGame());
   
    //Below we apply forced pointer comparison to check the setter.
    mainUI.withGhostController(ghostMover1);
    assertSame(ghostMover1, mainUI.getGhostController());
   
View Full Code Here

TOP

Related Classes of org.jpacman.framework.controller.IController

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.