summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/bukkit/BukkitMirrorTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/java/org/bukkit/BukkitMirrorTest.java b/src/test/java/org/bukkit/BukkitMirrorTest.java
new file mode 100644
index 00000000..5728e429
--- /dev/null
+++ b/src/test/java/org/bukkit/BukkitMirrorTest.java
@@ -0,0 +1,19 @@
+package org.bukkit;
+
+import static org.junit.Assert.*;
+
+import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
+
+import org.junit.Test;
+
+public class BukkitMirrorTest {
+ @Test
+ public final void test() throws NoSuchMethodException {
+ Method[] serverMethods = Server.class.getDeclaredMethods();
+ for(Method method : serverMethods) {
+ Method mirrorMethod = Bukkit.class.getDeclaredMethod(method.getName(), method.getParameterTypes());
+ assertTrue("Bukkit." + method.getName() + " must be static!", Modifier.isStatic(mirrorMethod.getModifiers()));
+ }
+ }
+}