mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 20:53:54 -07:00
22
paper-api/src/test/java/org/bukkit/StatisticTest.java
Normal file
22
paper-api/src/test/java/org/bukkit/StatisticTest.java
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user