e9ae9842f0
By: md_5 <git@md-5.net>
15 lines
357 B
Java
15 lines
357 B
Java
package org.bukkit;
|
|
|
|
import static org.hamcrest.CoreMatchers.*;
|
|
import static org.junit.Assert.*;
|
|
import org.junit.Test;
|
|
|
|
public class DifficultyTest {
|
|
@Test
|
|
public void getByValue() {
|
|
for (Difficulty difficulty : Difficulty.values()) {
|
|
assertThat(Difficulty.getByValue(difficulty.getValue()), is(difficulty));
|
|
}
|
|
}
|
|
}
|