タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

junitに関するmi_kattunのブックマーク (2)

  • The Java Plugin

    The Java plugin adds Java compilation along with testing and bundling capabilities to a project. It serves as the basis for many of the other JVM language Gradle plugins. You can find a comprehensive introduction and overview to the Java Plugin in the Building Java Projects chapter. As indicated above, this plugin adds basic building blocks for working with JVM projects. Its feature set has been s

  • 【slim3】jUnit4.x系の使い方 - The HIRO Says

    前回も触れましたが、slim3 のテストでは jUnit 4.7 を使用しています。 jUnit は、4.x 系になってから、仕様がアノテーションベースに変更になっています。 前回はうまくまとめられなかったので、今回は jUnit 4.x 系の使い方を簡単にまとめてみようと思います。 ポイント 4.x 系の場合、大きく2つのポイントがあります。 TestCase を継承しない アノテーションを使用する TestCaseを継承しない 4.x 系では、@Test アノテーション(後述)をテストメソッドにつければテスト対象として認識されます。 そのため、3.x 系までのように org.junit.TestCase クラスを継承する必要はありません。 ※特別にクラスを継承することは可能。Service のテストで触れる予定。 但し、TestCase クラスを継承しなくなると、assertXxx()

    【slim3】jUnit4.x系の使い方 - The HIRO Says
  • 1