summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/bukkit/LootTablesTest.java
blob: 8d2cbb44ccfccd8b7beaa9654c2553c23b454fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.bukkit;

import org.bukkit.loot.LootTable;
import org.bukkit.loot.LootTables;
import org.bukkit.support.AbstractTestingBase;
import org.junit.Assert;
import org.junit.Test;

public class LootTablesTest extends AbstractTestingBase {

    @Test
    public void testLootTablesEnumExists() {
        LootTables[] tables = LootTables.values();

        for (LootTables table : tables) {
            LootTable lootTable = Bukkit.getLootTable(table.getKey());

            Assert.assertNotNull("Unknown LootTable " + table.getKey(), lootTable);
            Assert.assertEquals(lootTable.getKey(), table.getKey());
        }
    }
}