Is there any way, how to make Intellij Idea to move my Unit Test classes automatically to a coresponding package when I move tested class?
For example I have these two classes:
src/main/java/com/MyClass.java
src/test/java/com/MyClassTest.java
When I move
src/main/java/com/MyClass.java
to
src/main/java/com/subpackage/MyClass.java
I need the test class to be moved automatically like this:
src/test/java/com/subpackage/MyClassTest.java
It is the same functionality, that does MoreUnit Eclipse plugin.
Intellij Idea does not support this so far.
You can vote here for a new idea to make this feature happen. https://youtrack.jetbrains.com/issue/IDEA-20779#tab=Comments&u=1481384491786
Edit 2018: Intellij Idea now contains this functionality.
Edit 2018-08: It seems that it does not work anymore or it never worked and I just thought it worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With