Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
InstrumentTest.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 InstrumentTest {
9  @Test
10  public void getByType() {
11  for (Instrument instrument : Instrument.values()) {
12  assertThat(Instrument.getByType(instrument.getType()), is(instrument));
13  }
14  }
15 }
static Instrument getByType(final byte type)
Definition: Instrument.java:58