Skip to content

Instantly share code, notes, and snippets.

@kyohei8
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyohei8/9823466 to your computer and use it in GitHub Desktop.
Save kyohei8/9823466 to your computer and use it in GitHub Desktop.
Seasar2(Struts) + Junit (4.4) Memo

Seasar2とJunitでテストするときに色々調べた結果

オフィ

Seasar - テストの概要

Seasar - EasyMockサポート

便利なリンク

SAStruts/S2JUnit4でserviceクラスをテストする

Easymock

EasyMockで厳密なチェック無しで型一致のみで先に進める… - misc.log

日本語チュートリアル
EasyMock を使用してテストを容易にする

2 matchers expected, 1 recorded. | Igor's Blog

↓複数パラメータの場合で、anyObjectを使う場合は、他の引数もany*かeq()を付けないといけない

expect(indexLogic.getPropertyMatrix((SearchDto) anyObject(), eq("mansion")))
					.andReturn(investmentMatrixList);

EasyMockを使ってみた - DENの思うこと

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment