@@ -1,12 +1,12 @@
|
||||
package org.bukkit;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import net.minecraft.resources.MinecraftKey;
|
||||
import org.bukkit.craftbukkit.util.CraftNamespacedKey;
|
||||
import org.bukkit.loot.LootTable;
|
||||
import org.bukkit.loot.LootTables;
|
||||
import org.bukkit.support.AbstractTestingBase;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class LootTablesTest extends AbstractTestingBase {
|
||||
|
||||
@@ -17,8 +17,8 @@ public class LootTablesTest extends AbstractTestingBase {
|
||||
for (LootTables table : tables) {
|
||||
LootTable lootTable = Bukkit.getLootTable(table.getKey());
|
||||
|
||||
Assert.assertNotNull("Unknown LootTable " + table.getKey(), lootTable);
|
||||
Assert.assertEquals(lootTable.getKey(), table.getKey());
|
||||
assertNotNull(lootTable, "Unknown LootTable " + table.getKey());
|
||||
assertEquals(lootTable.getKey(), table.getKey());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ public class LootTablesTest extends AbstractTestingBase {
|
||||
NamespacedKey bukkitKey = CraftNamespacedKey.fromMinecraft(key);
|
||||
LootTables lootTable = Registry.LOOT_TABLES.get(bukkitKey);
|
||||
|
||||
Assert.assertNotNull("Unknown LootTable " + key, lootTable);
|
||||
Assert.assertEquals(lootTable.getKey(), bukkitKey);
|
||||
assertNotNull(lootTable, "Unknown LootTable " + key);
|
||||
assertEquals(lootTable.getKey(), bukkitKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user