Package games.stendhal.server.actions.query

Source Code of games.stendhal.server.actions.query.InfoActionTest

/* $Id: InfoActionTest.java,v 1.1 2010/12/04 20:28:33 nhnb Exp $ */
/***************************************************************************
*                   (C) Copyright 2003-2010 - Stendhal                    *
***************************************************************************
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************/
package games.stendhal.server.actions.query;


import static org.junit.Assert.assertFalse;
import games.stendhal.server.actions.query.InfoAction;
import games.stendhal.server.entity.player.Player;

import org.junit.Test;

import utilities.PlayerTestHelper;

public class InfoActionTest {

  /**
   * Tests for execute.
   */
  @Test
  public void testExecute() throws Exception {
    Player bob = PlayerTestHelper.createPlayer("bob");
    InfoAction info = new InfoAction();
    info.onAction(bob, null);
    assertFalse(bob.events().isEmpty());
    //assertEquals(null,bob.events().get(0));
   
  }
}
TOP

Related Classes of games.stendhal.server.actions.query.InfoActionTest

TOP
Copyright © 2018 www.massapi.com. 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.