JMockitを使ってテストしようしたら↓のようなExceptionで落ちてしまいました。 java.lang.IllegalStateException: JMockit wasn’t properly initialized; check that jmockit.jar precedes junit.jar in the classpath (if using JUnit; if not, check the documentation) IntelliJ IDEAは何かとかゆい所に手が届く感があって便利なのですが、 日本語の情報が少ないのでメモがてら。↓に記載されていました。 Intellij IDEA editor: classpath order :: JetBrains Developer Community ■ Project Structureを開く ショートカット ⇒
![IntelliJ IDEAでjarファイルのクラスパスの順番を変更する](https://cdn-ak-scissors.b.st-hatena.com/image/square/783d254f9399f2ce1dcecf40ee34041781ca39e0/height=288;version=1;width=512/http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F51xJPpFp-RL._SL160_.jpg)