メソッド名を日本語にする話 - 日々常々とかにも書いてるんですが、テストメソッド名に日本語を使うのはザラです。むしろ使わない理由がありません。こんなのですね。 import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import org.junit.Test; public class HogeTest { @Test public void ほげはほげのはず() throws Exception { assertThat("hoge", is("hoge")); } } 例が悪い?そこは気にしないでくださいませ。 さて、メソッド名に日本語を使った時に、一部IDEでは問題が起こることがあります。一部と言いつつ私はEclipserなのでEclipseの話です。 Eclipse
![JUnitのテストメソッド名に日本語を使ったときの問題と対処 - 日々常々](https://cdn-ak-scissors.b.st-hatena.com/image/square/7b2d3d9a9a70c699d06d9039dcd854eb85803191/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fi%2Firof%2F20120804%2F20120804181013.png)