Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
WorldTypeTest.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 WorldTypeTest {
9  @Test
10  public void getByName() {
11  for (WorldType worldType : WorldType.values()) {
12  assertThat(WorldType.getByName(worldType.getName()), is(worldType));
13  }
14  }
15 }
static WorldType getByName(String name)
Definition: WorldType.java:38