OSDN Git Service

tc
[chemicraft/chemicraft.git] / common / pcc / chemicraft / testcase / MaterialRecipeTest.java
1 /*
2 package pcc.chemicraft.testcase;
3
4 import static org.junit.Assert.*;
5
6 import net.minecraft.item.ItemStack;
7
8 import org.junit.Test;
9
10 import pcc.chemicraft.base.ChemiCraftBase;
11 import pcc.chemicraft.core.inventory.InventoryChemicalCraftingMaterial;
12 import pcc.chemicraft.core.nbt.ChemicalNBTRecipe;
13 import pcc.chemicraft.util.MaterialRecipe;
14
15 public class MaterialRecipeTest extends MaterialRecipe {
16
17         public MaterialRecipeTest() {
18                 super(
19                                 new ItemStack(1800, 1, 0),
20                                 new ItemStack[] {
21                                         new ItemStack(1800, 1, 0)
22                                 },
23                                 null,
24                                 true);
25         }
26
27         @Test
28         public void test() {
29
30                 ItemStack stack = new ItemStack(18000, 1, 0);
31                 InventoryChemicalCraftingMaterial inv = new InventoryChemicalCraftingMaterial();
32                 inv.setInventorySlotContents(0, new ItemStack(18000, 1, 0));
33
34                 MaterialRecipe mr = new MaterialRecipe(
35                                 stack,
36                                 new ItemStack[] {
37                                                 new ItemStack(18000, 1, 0)
38                                 },
39                                 null,
40                                 true);
41
42                 assertEquals(
43                                 mr.match(inv),
44                                 stack
45                                 );
46
47         }
48
49 }
50 */