Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
EffectTest.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 EffectTest {
9  @Test
10  public void getById() {
11  for (Effect effect : Effect.values()) {
12  assertThat(Effect.getById(effect.getId()), is(effect));
13  }
14  }
15 }
static Effect getById(int id)
Definition: Effect.java:133