Do not include kotlin-reflect at runtime by default in codegen tests

Change some tests to either include reflection or to avoid using it
This commit is contained in:
Alexander Udalov
2016-03-05 23:55:09 +03:00
committed by Alexander Udalov
parent 20e36438e2
commit 2564a2f91f
20 changed files with 37 additions and 24 deletions
@@ -23,7 +23,8 @@ class ReflectionClassLoaderTest : CodegenTestCase() {
override fun setUp() {
super.setUp()
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.ALL)
configurationKind = ConfigurationKind.ALL
createEnvironmentWithMockJdkAndIdeaAnnotations(configurationKind)
}
private fun Class<*>.methodByName(name: String) = declaredMethods.single { it.name == name }