mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
ac2271958e
By: Erik Broes <erikbroes@grum.nl>
15 lines
354 B
Java
15 lines
354 B
Java
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));
|
|
}
|
|
}
|
|
}
|