タグ

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

タグの絞り込みを解除

junitとjavaに関するatottoのブックマーク (4)

  • HamcrestのMatchersに定義されているメソッドの使い方メモ - Qiita

    apply plugin: 'java' repositories { mavenCentral() } dependencies { testCompile 'junit:junit:4.11', { transitive = false } testCompile 'org.hamcrest:hamcrest-all:1.3' } >gradle dependencies testCompile - Compile classpath for source set 'test'. +--- junit:junit:4.11 \--- org.hamcrest:hamcrest-all:1.3 JUnit 4.11 はデフォルトだと hamcrest-core の 1.3 に依存している。 今回は別途 hamcrest-all を依存関係に追加するので、 transitive = fal

    HamcrestのMatchersに定義されているメソッドの使い方メモ - Qiita
  • JUnit 4 & TestNG

    目次 JUnit 4 と TestNG について JUnit 4 TestNG   JUnit 4 と TestNG について JUnit 4 は JUnit 3.8 を Java 5 のアノテーションに対応させて各種の制約(テストケースは TestCase を継承する必要があったり、テストメソッドは "test" という名前で始めなければならない)を取り除いたものになっています。若干機能拡張もなされていますが、アノテーション対応が目玉と言って良いでしょう。2006/09/01 現在の最新版は 4.1 です。 TestNG(NG は Next Generation の略)は アノテーションに格対応したテスティングフレームワークで、JUnit に比べて機能が豊富であることが特徴です。2006/09/01 現在の最新版は 5.1です。 JUnit 4 は Eclipse 3.2 でサポートさ

    atotto
    atotto 2012/07/10
    テスト
  • JUnit 5 tutorial - Learn how to write unit tests

    Lars Vogel (c) 2007 - 2024 vogella GmbH version 4.7, 16.09.2024 This tutorial explains unit testing with JUnit with the JUnit 5 framework (JUnit Jupiter). It explains the creation of JUnit 5 tests with the Maven and Gradle build system. It demonstrates the usage of the Eclipse IDE for developing software tests with JUnit 5 but this tutorial is also valid for tools like Visual Code or IntelliJ.

    atotto
    atotto 2012/02/21
  • JUnit のセカイ #JJUG - やさしいデスマーチ

    このエントリーは、@cero-tさんのエントリーの次で、Java Advent Calendar 2011の6番目のエントリーです。自分自身の今年のメインテーマがTDD(テスト駆動開発)と言う事もあり、関連エントリーとしてJUnitについて書きたいかと思います。今更JUnit?と思われた方も普段からJUnitを使っていあなたも気軽にお読みください。尚、色々な話題を駆け足で紹介するので、どれも簡単な紹介程度になってしまいますが、ご了承願います。 JUnit4 スタイル JUnitがアノテーションに対応し結構な月日が流れましたが、古いコーディング規約のままでテストコードを書いていませんか?JUnit4では、アノテーションとアサーションを使ったテストコードを書くことが基スタイルです。かつては、TestCaseのサブクラスを作り、testではじまるメソッドを定義していましたが、今は Testアノ

    JUnit のセカイ #JJUG - やさしいデスマーチ
  • 1