ホーム :buriチュートリアル :buriを使っての実行およびデータの取得 :準備する :


UnitTestを準備

前へ 次へ

UnitTestを準備します

まずはUnitTestで使うdiconファイル(FurnitureManagement.diconと仮定)

配布ファイルに含まれているbao.diconをinclude


FurnitureManagementのDaoへアクセスするための設定


bao.interceptor



準備済みのモノは配布ファイルの中の
src/test/resources/org/seasar/buri/bao/test/dicon/FurnitureManagement.dicon
ここにあります

普通にTestCaseを作り、継承するクラスで
S2TestCase
を指定します

private String PATH = "org/seasar/buri/bao/test/dicon/FurnitureManagement.dicon";

ここまで準備します
private BuriEngine buriEngine_;
private FurnitureManagementBao fmBao_;

public FurnitureManagementBaoTest(String arg0) {
super(arg0);
}

protected void setUp() throws Exception {
super.setUp();
include("org/seasar/buri/bao/test/dicon/FurnitureManagement.dicon");
}

public void testFMBaoTx() {
}

この後の作業はすべて testFMBaoTxへの追加になります


準備する に戻る