Struts2メモ

2009-08-26 - おおたに6号機blog

でStruts2が紹介されています。
僕もshot6さんと同じく今までちら見程度だったのですが、
Webworkを使ってた事があるので読むだけで大体理解することができました。


ただ、Webworkを使っていたときの不満としてActionのテストケースが
複雑で上手く動作しなかった気がするので、struts2はどうなんだろうと思って
調べたところ、幾つか見つかったのでご紹介。


仮にコンテナにS2を使ったとしても Action や Validation(XMLで定義?) は
Hot Reloadingの恩恵を受けられないのでこれが簡単にテストできると
すごく便利だと思う。


Unit Testing Struts 2 Actions wired with Spring using JUnit « Depressed Programmer


Unit Testing Struts 2 Actions « Glindholm’s Weblog

My goal is to be able to unit test my actions in the full Struts 2 context with the Interceptor stack being run which includes validation.

とあるように、やっぱvalidationを含んだactionのテストって
みんな悩んでるんだと思う。