15
paper-api/src/test/java/org/bukkit/GameModeTest.java
Normal file
15
paper-api/src/test/java/org/bukkit/GameModeTest.java
Normal 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 GameModeTest {
|
||||
@Test
|
||||
public void getByValue() {
|
||||
for (GameMode gameMode : GameMode.values()) {
|
||||
assertThat(GameMode.getByValue(gameMode.getValue()), is(gameMode));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user