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,22 @@
package org.bukkit;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class StatisticTest {
@Test
public void getDeprecated() {
for (Statistic statistic : Statistic.values()) {
assertThat(Statistic.getStatistic(statistic.getId()), is(statistic));
}
}
@Test
public void getById() {
for (Statistic statistic : Statistic.values()) {
assertThat(Statistic.getById(statistic.getId()), is(statistic));
}
}
}