File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed
src/test/kotlin/com/tschuchort/compiletesting Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -776,39 +776,6 @@ class KotlinCompilationTests {
776776 assertThat(result.outputDirectory.listFilesRecursively().map { it.name })
777777 .contains(" JSource.class" , " KSource.class" )
778778 }
779-
780- private fun defaultCompilerConfig (): KotlinCompilation {
781- return KotlinCompilation ().apply {
782- workingDir = temporaryFolder.root
783- inheritClassPath = false
784- skipRuntimeVersionCheck = true
785- correctErrorTypes = true
786- verbose = true
787- reportOutputFiles = false
788- messageOutputStream = System .out
789- }
790- }
791-
792- private fun assertClassLoadable (compileResult : KotlinCompilation .Result , className : String ): Class <* > {
793- try {
794- val clazz = compileResult.classLoader.loadClass(className)
795- assertThat(clazz).isNotNull
796- return clazz
797- }
798- catch (e: ClassNotFoundException ) {
799- return fail<Nothing >(" Class $className could not be loaded" )
800- }
801- }
802-
803- /* *
804- * Returns the classpath for a dependency (format $name-$version).
805- * This is necessary to know the actual location of a dependency
806- * which has been included in test runtime (build.gradle).
807- */
808- private fun classpathOf (dependency : String ): File {
809- val regex = Regex (" .*$dependency \\ .jar" )
810- return ClassGraph ().classpathFiles.first { classpath -> classpath.name.matches(regex) }
811- }
812779
813780 class InheritedClass {}
814781}
You can’t perform that action at this time.
0 commit comments