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. *
|
|
|
|
|
* *
|
|
|
|
|
***************************************************************************/
|
2008-01-27 16:27:47 +00:00
|
|
|
package utilities.RPClass;
|
2007-11-12 18:55:22 +00:00
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertEquals;
|
2008-01-27 16:27:47 +00:00
|
|
|
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();
|
2008-07-12 14:44:47 +00:00
|
|
|
final Item item = ItemTestHelper.createItem("blabla");
|
2007-11-12 18:55:22 +00:00
|
|
|
assertEquals("blabla", item.getName());
|
|
|
|
|
|
|
|
|
|
}
|
2008-01-27 16:27:47 +00:00
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testGenerateRPClasses() {
|
|
|
|
|
ItemTestHelper.generateRPClasses();
|
|
|
|
|
assertTrue(RPClass.hasRPClass("item"));
|
2017-05-28 01:03:01 +02:00
|
|
|
|
2008-01-27 16:27:47 +00:00
|
|
|
}
|
2007-11-12 18:55:22 +00:00
|
|
|
}
|