Add some testing

This commit is contained in:
Erik Broes
2012-01-29 11:10:40 +01:00
parent 6160de9c28
commit 9c0f2f6d38
34 changed files with 871 additions and 281 deletions

View File

@@ -0,0 +1,15 @@
package org.bukkit;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class InstrumentTest {
@Test
public void getByType() {
for (Instrument instrument : Instrument.values()) {
assertThat(Instrument.getByType(instrument.getType()), is(instrument));
}
}
}