Add some testing

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2012-01-29 11:10:40 +01:00
parent ae0eb736d1
commit ac2271958e
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 TreeSpeciesTest {
@Test
public void getByData() {
for (TreeSpecies treeSpecies : TreeSpecies.values()) {
assertThat(TreeSpecies.getByData(treeSpecies.getData()), is(treeSpecies));
}
}
}