Update Update Bukkit to 1.7.2
By: mbax <matt@phozop.net>
This commit is contained in:
parent
1945a3b7ea
commit
aa66c8025a
19 changed files with 327 additions and 205 deletions
|
@ -15,8 +15,11 @@ public class MaterialTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void getById() {
|
||||
public void getById() throws Throwable {
|
||||
for (Material material : Material.values()) {
|
||||
if (material.getClass().getField(material.name()).getAnnotation(Deprecated.class) != null) {
|
||||
continue;
|
||||
}
|
||||
assertThat(Material.getMaterial(material.getId()), is(material));
|
||||
}
|
||||
}
|
||||
|
@ -56,8 +59,11 @@ public class MaterialTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void matchMaterialById() {
|
||||
public void matchMaterialById() throws Throwable {
|
||||
for (Material material : Material.values()) {
|
||||
if (material.getClass().getField(material.name()).getAnnotation(Deprecated.class) != null) {
|
||||
continue;
|
||||
}
|
||||
assertThat(Material.matchMaterial(String.valueOf(material.getId())), is(material));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue