Alt+Enter (fastfix) on your class/method -> Cre...
# android
g
Alt+Enter (fastfix) on your class/method -> Create test
b
it is just create a Java Unit Test, I mean a Kotlin Unit Test
g
It creates Unit test on the same language as an original file. Anyway, you can convert Java class to Kotlin in one second
b
Yeah, I know it. I can convert that. but, my question is I want to call a shortcut just like create a Unit Test in Java
as simple as when you create a unit test from java class
g
I don’t understand
How do you create unit test in java?
b
same shortcut like
alt+enter
but, suddenly you can’t do that if your class in kotlin and you want to create a unit test using the same language. I’m using Android version 2.3.3 by the way
g
I can do that in Kotlin file
alt+enter works only on class name, but also you can use “navigate to test” to create test on any place in file/class
b
what IDE do you have ? Android or IntelliJ IDEA ? and the version is ?
g
both. But I checked on Android Studio 3.0 But I think there is no difference, it’s part of Kotlin Plugin (I use 1.1.3-2 plugins)
b
hmmm, ok I’ll check it. thanks man