Package games.stendhal.client

Source Code of games.stendhal.client.RPObjectChangeDispatcherTest

/* $Id: RPObjectChangeDispatcherTest.java,v 1.6 2010/09/19 02:37:52 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.client;

import static org.junit.Assert.*;
import games.stendhal.client.listener.RPObjectChangeListener;

import marauroa.common.game.RPObject;

import org.junit.Test;

public class RPObjectChangeDispatcherTest {

  /**
   * Tests for dispatchModifyRemoved.
   */
  @Test
  public void testDispatchModifyRemoved() {
    final RPObjectChangeListener listener = new RPObjectChangeListener() {

      public void onAdded(final RPObject object) {

      }

      public void onChangedAdded(final RPObject object, final RPObject changes) {

      }

      public void onChangedRemoved(final RPObject object, final RPObject changes) {

      }

      public void onRemoved(final RPObject object) {

      }

      public void onSlotAdded(final RPObject object, final String slotName, final RPObject sobject) {

      }

      public void onSlotChangedAdded(final RPObject object, final String slotName, final RPObject sobject, final RPObject schanges) {

      }

      public void onSlotChangedRemoved(final RPObject object, final String slotName, final RPObject sobject, final RPObject schanges) {

      }

      public void onSlotRemoved(final RPObject object, final String slotName, final RPObject sobject) {

      }
    };
    final RPObjectChangeDispatcher dispatcher = new RPObjectChangeDispatcher(listener, listener);
    dispatcher.dispatchModifyRemoved(null, null);
    assertTrue("make sure we have no NPE", true);
  }

}
TOP

Related Classes of games.stendhal.client.RPObjectChangeDispatcherTest

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.