3 import static org.junit.Assert.*;
5 import java.lang.reflect.Method;
6 import java.lang.reflect.Modifier;
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()));