Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
BukkitMirrorTest.java
1 package org.bukkit;
2 
3 import static org.junit.Assert.*;
4 
5 import java.lang.reflect.Method;
6 import java.lang.reflect.Modifier;
7 
8 import org.junit.Test;
9 
10 public class BukkitMirrorTest {
11  @Test
12  public final void test() throws NoSuchMethodException {
13  Method[] serverMethods = Server.class.getDeclaredMethods();
14  for(Method method : serverMethods) {
15  Method mirrorMethod = Bukkit.class.getDeclaredMethod(method.getName(), method.getParameterTypes());
16  assertTrue("Bukkit." + method.getName() + " must be static!", Modifier.isStatic(mirrorMethod.getModifiers()));
17  }
18  }
19 }