Migrate compiler, idea and others to new case conversion api
This commit is contained in:
+2
-2
@@ -46,10 +46,10 @@ open class SimpleTestMethodModel(
|
||||
extractedName
|
||||
} else {
|
||||
val relativePath = FileUtil.getRelativePath(rootDir, file.parentFile)
|
||||
relativePath + "-" + extractedName.capitalize()
|
||||
relativePath + "-" + extractedName.replaceFirstChar(Char::uppercaseChar)
|
||||
}
|
||||
val ignored = skipIgnored && InTextDirectivesUtils.isIgnoredTarget(targetBackend, file)
|
||||
return (if (ignored) "ignore" else "test") + escapeForJavaIdentifier(unescapedName).capitalize()
|
||||
return (if (ignored) "ignore" else "test") + escapeForJavaIdentifier(unescapedName).replaceFirstChar(Char::uppercaseChar)
|
||||
}
|
||||
|
||||
init {
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ object TestGeneratorUtil {
|
||||
|
||||
@JvmStatic
|
||||
fun fileNameToJavaIdentifier(file: File): String {
|
||||
return escapeForJavaIdentifier(file.name).capitalize()
|
||||
return escapeForJavaIdentifier(file.name).replaceFirstChar(Char::uppercaseChar)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user