stendhal/tests/utilities/RPClass/ItemTestHelperTest.java

40 lines
1.4 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.RPClass;
2007-11-12 18:55:22 +00:00
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
2007-11-12 18:55:22 +00:00
2017-05-28 01:03:01 +02:00
import games.stendhal.server.entity.item.Item;
import marauroa.common.game.RPClass;
2007-11-12 18:55:22 +00:00
public class ItemTestHelperTest {
@org.junit.Test
public void testcreateItem() throws Exception {
ItemTestHelper.createItem();
final Item item = ItemTestHelper.createItem("blabla");
2007-11-12 18:55:22 +00:00
assertEquals("blabla", item.getName());
}
@Test
public void testGenerateRPClasses() {
ItemTestHelper.generateRPClasses();
assertTrue(RPClass.hasRPClass("item"));
2017-05-28 01:03:01 +02:00
}
2007-11-12 18:55:22 +00:00
}