Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
DifficultyTest.java
1 package org.bukkit;
2 
3 import static org.hamcrest.CoreMatchers.is;
4 import static org.junit.Assert.assertThat;
5 
6 import org.junit.Test;
7 
8 public class DifficultyTest {
9  @Test
10  public void getByValue() {
11  for (Difficulty difficulty : Difficulty.values()) {
12  assertThat(Difficulty.getByValue(difficulty.getValue()), is(difficulty));
13  }
14  }
15 }
static Difficulty getByValue(final int value)
Definition: Difficulty.java:63