Files
paper-mc/paper-api/src/test/java/org/bukkit/DifficultyTest.java
Bukkit/Spigot ac2271958e Add some testing
By: Erik Broes <erikbroes@grum.nl>
2012-01-29 11:10:40 +01:00

16 lines
368 B
Java

package org.bukkit;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class DifficultyTest {
@Test
public void getByValue() {
for (Difficulty difficulty : Difficulty.values()) {
assertThat(Difficulty.getByValue(difficulty.getValue()), is(difficulty));
}
}
}