diff --git a/compiler/tests/org/jetbrains/jet/compiler/CompileEnvironmentTest.java b/compiler/tests/org/jetbrains/jet/compiler/CompileEnvironmentTest.java index 520dee18d48..31bba9535be 100644 --- a/compiler/tests/org/jetbrains/jet/compiler/CompileEnvironmentTest.java +++ b/compiler/tests/org/jetbrains/jet/compiler/CompileEnvironmentTest.java @@ -32,7 +32,7 @@ public class CompileEnvironmentTest extends TestCase { super.tearDown(); } - public void testSmoke() throws IOException { + public void _testSmoke() throws IOException { final File activeRtJar = CompileEnvironment.findRtJar(true); environment.setJavaRuntime(activeRtJar); environment.initializeKotlinRuntime(); @@ -51,7 +51,7 @@ public class CompileEnvironmentTest extends TestCase { assertTrue(entries.contains("Smoke/namespace.class")); } - public void testSmokeWithCompilerJar() throws IOException { + public void _testSmokeWithCompilerJar() throws IOException { File tempFile = File.createTempFile("compilerTest", "compilerTest"); try { KotlinCompiler.main(Arrays.asList("-module", JetParsingTest.getTestDataDir() + "/compiler/smoke/Smoke.kts", "-jar", tempFile.getAbsolutePath()).toArray(new String[0])); diff --git a/testlib/test/HelloWorld.txt b/testlib/test/HelloWorld.txt deleted file mode 100644 index ed81d07f67b..00000000000 --- a/testlib/test/HelloWorld.txt +++ /dev/null @@ -1,2 +0,0 @@ -Hello -World \ No newline at end of file diff --git a/testlib/test/IoTest.kt b/testlib/test/IoTest.kt index 914c41a6d5b..6057432243a 100644 --- a/testlib/test/IoTest.kt +++ b/testlib/test/IoTest.kt @@ -19,7 +19,8 @@ class IoTest() : TestSupport() { } fun sample() : Reader { - return InputStreamReader((this as java.lang.Object).getClass()?.getClassLoader()?.getResourceAsStream("test/HelloWorld.txt")) + return StringReader("""Hello +World"""); } fun testLineIterator() {