Files
Paper/paper-api/src/test/java/org/bukkit/DifficultyTest.java
Bukkit/Spigot 2a6d2d27d7 #909: Update tests to JUnit 5
By: DerFrZocker <derrieple@gmail.com>
2023-09-24 06:09:10 +10:00

15 lines
385 B
Java

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