stendhal/tests/utilities/PlayerTestHelperTest.java

58 lines
1.9 KiB
Java
Raw Permalink Normal View History

2010-09-19 01:29:21 +00:00
/* $Id$ */
/***************************************************************************
* (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 utilities;
2007-11-09 22:40:30 +00:00
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
2017-05-28 01:03:01 +02:00
import games.stendhal.server.entity.player.Player;
import marauroa.common.game.RPObject;
public class PlayerTestHelperTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public final void testAddEmptySlots() {
PlayerTestHelper.generatePlayerRPClasses();
final Player bob = new Player(new RPObject());
PlayerTestHelper.addEmptySlots(bob);
2017-05-28 01:03:01 +02:00
assertTrue(bob.hasSlot("bag"));
assertTrue(bob.hasSlot("lhand"));
assertTrue(bob.hasSlot("rhand"));
assertTrue(bob.hasSlot("armor"));
assertTrue(bob.hasSlot("head"));
assertTrue(bob.hasSlot("legs"));
assertTrue(bob.hasSlot("feet"));
assertTrue(bob.hasSlot("finger"));
assertTrue(bob.hasSlot("cloak"));
assertTrue(bob.hasSlot("keyring"));
assertTrue(bob.hasSlot("!quests"));
assertTrue(bob.hasSlot("!kills"));
assertTrue(bob.hasSlot("!tutorial"));
2007-11-15 12:34:26 +00:00
assertTrue(bob.hasSlot("!visited"));
}
}