diff options
author | George Fraser <george@fivetran.com> | 2018-06-30 21:39:09 -0700 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-06-30 21:39:09 -0700 |
commit | c894d9b8b73f70650be2432b696b3689132878a6 (patch) | |
tree | e4e97db17eefaf7900614bd83c162841fd60f962 /src/test | |
parent | 621b52f4679a6de70e1dd9c0e8fe7c182a8f812d (diff) | |
download | java-language-server-c894d9b8b73f70650be2432b696b3689132878a6.zip |
No longer needed
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/MainTest.java | 28 |
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)); - } -} |