Package games.stendhal.server.entity.mapstuff.portal.AccessCheckingPortal

Examples of games.stendhal.server.entity.mapstuff.portal.AccessCheckingPortal.SendMessage


    final Set<TurnListener> bla = turnNotifier.getEventListForDebugging().get(
        Integer.valueOf(turnNotifier.getCurrentTurnForDebugging() + 1));
    final TurnListener[] listenerset = new TurnListener[bla.size()];
    bla.toArray(listenerset);
    assertTrue(listenerset[0] instanceof AccessCheckingPortal.SendMessage);
    final SendMessage sm = (SendMessage) listenerset[0];
    sm.onTurnReached(0);
    assertEquals("rejected", player.events().get(0).get("text"));
  }
View Full Code Here


    final Set<TurnListener> bla = SingletonRepository.getTurnNotifier().getEventListForDebugging().get(
        Integer.valueOf(TurnNotifier.get().getCurrentTurnForDebugging() + 1));
    final TurnListener[] listenerset = new TurnListener[bla.size()];
    bla.toArray(listenerset);
    assertTrue(listenerset[0] instanceof AccessCheckingPortal.SendMessage);
    final SendMessage sm = (SendMessage) listenerset[0];
    sm.onTurnReached(0);
    assertEquals("setRejectMessage", player.events().get(0).get("text"));
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.mapstuff.portal.AccessCheckingPortal.SendMessage

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.