tanamonの稀に良く書く日記

KEEP CALM AND DRINK BEER

Spring Rooの動作(16) - test integrationコマンド

test integrationコマンド

  • エンティティクラスに対応するUnitTestを作成する

オプション

--entity [entity]
  • [entity]で指定したエンティティクラスに対応するUnitTestを作成する
  • entityコマンドで作成したクラスのみテストを自動作成できる
  • entityコマンドで--testAutomaticallyオプションを付けた場合と同じ動作

使い方

roo> test integration --entity ~.domain.IntegrationTestEntity
Created SRC_TEST_JAVA\com\example\sandbox\domain\IntegrationTestEntityDataOnDemand.java
Created SRC_TEST_JAVA\com\example\sandbox\domain\IntegrationTestEntityIntegrationTest.java
Created SRC_TEST_JAVA\com\example\sandbox\domain\IntegrationTestEntityDataOnDemand_Roo_Configurable.aj
Created SRC_TEST_JAVA\com\example\sandbox\domain\IntegrationTestEntityDataOnDemand_Roo_DataOnDemand.aj
Created SRC_TEST_JAVA\com\example\sandbox\domain\IntegrationTestEntityIntegrationTest_Roo_Configurable.aj
Created SRC_TEST_JAVA\com\example\sandbox\domain\IntegrationTestEntityIntegrationTest_Roo_IntegrationTest.aj

その他

  • テストを実行する時はperform testsコマンドを使用する