2010-09-19 01:29:21 +00:00
|
|
|
/***************************************************************************
|
2015-12-10 01:51:45 +01:00
|
|
|
* (C) Copyright 2003-2015 - Stendhal *
|
2010-09-19 01:29:21 +00:00
|
|
|
***************************************************************************
|
|
|
|
|
***************************************************************************
|
|
|
|
|
* *
|
|
|
|
|
* 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-08-26 20:09:33 +00:00
|
|
|
package utilities.RPClass;
|
|
|
|
|
|
2015-12-10 01:51:45 +01:00
|
|
|
import static org.hamcrest.CoreMatchers.instanceOf;
|
2010-09-19 01:29:21 +00:00
|
|
|
import static org.junit.Assert.assertThat;
|
2008-08-26 20:09:33 +00:00
|
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
2015-12-10 01:51:45 +01:00
|
|
|
import games.stendhal.server.entity.item.ConsumableItem;
|
|
|
|
|
|
2008-08-26 20:09:33 +00:00
|
|
|
public class ConsumableTestHelperTest {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testCreate() throws Exception {
|
2010-09-19 01:29:21 +00:00
|
|
|
|
2008-08-26 20:09:33 +00:00
|
|
|
ConsumableItem eater = ConsumableTestHelper.createEater("consume");
|
2015-12-10 01:51:45 +01:00
|
|
|
assertThat(eater, instanceOf(ConsumableItem.class));
|
2010-09-19 01:29:21 +00:00
|
|
|
|
2008-08-26 20:09:33 +00:00
|
|
|
ConsumableItem createImmunizer = ConsumableTestHelper.createImmunizer("consume");
|
2015-12-10 01:51:45 +01:00
|
|
|
assertThat(createImmunizer, instanceOf(ConsumableItem.class));
|
2008-08-26 20:09:33 +00:00
|
|
|
}
|
|
|
|
|
}
|