When compiling the following code snippet:
class MyTest { @org.junit.Test def `test test`() { } }
The test test method is placed in bytecode as test$u0020test .
Why is this happening and how can I turn it off?
Space is a valid method name identifier according to the JVM specification. Nor is such coding mentioned in the Scala language specification. Moreover, other JVM languages such as Groovy and Groovy based on the Spock Framework do not encode spaces.
Why do I need this: user-friendly JUnit test names and test reports.
Java 1.8.0_45, Scala 2.11.6
scala
Sergey Alaev
source share