Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
CoalTypeTest.java
1 package org.bukkit;
2 
3 import static org.hamcrest.CoreMatchers.is;
4 import static org.junit.Assert.assertThat;
5 
6 import org.junit.Test;
7 
8 public class CoalTypeTest {
9  @Test
10  public void getByData() {
11  for (CoalType coalType : CoalType.values()) {
12  assertThat(CoalType.getByData(coalType.getData()), is(coalType));
13  }
14  }
15 }
static CoalType getByData(final byte data)
Definition: CoalType.java:41