summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-06-30 21:39:09 -0700
committerGeorge Fraser <george@fivetran.com>2018-06-30 21:39:09 -0700
commitc894d9b8b73f70650be2432b696b3689132878a6 (patch)
treee4e97db17eefaf7900614bd83c162841fd60f962 /src/test
parent621b52f4679a6de70e1dd9c0e8fe7c182a8f812d (diff)
downloadjava-language-server-c894d9b8b73f70650be2432b696b3689132878a6.zip
No longer needed
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/javacs/MainTest.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/test/java/org/javacs/MainTest.java b/src/test/java/org/javacs/MainTest.java
deleted file mode 100644
index ad8de79..0000000
--- a/src/test/java/org/javacs/MainTest.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.javacs;
-
-import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
-
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import org.junit.Test;
-
-public class MainTest {
- @Test
- public void checkJavacClassLoader()
- throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
- assertThat(Main.checkJavacClassLoader(), not(instanceOf(ChildFirstClassLoader.class)));
-
- ClassLoader langTools = LangTools.createLangToolsClassLoader();
- Class<?> main = langTools.loadClass("org.javacs.Main");
- assertThat(
- "Main was loaded by ChildFirstClassLoader",
- main.getClassLoader(),
- instanceOf(ChildFirstClassLoader.class));
- Method checkJavacClassLoader = main.getMethod("checkJavacClassLoader");
- assertThat(
- "JavacTool was loaded by ChildFirstClassLoader",
- checkJavacClassLoader.invoke(null),
- instanceOf(ChildFirstClassLoader.class));
- }
-}