用StrutsTestCase能很好的對Struts來進行測試,可是如果時用Spring來管理Struts的action的時候,用StrutsTestCase的常規方式是不能進行測試的,以下的一個文章對此有很好的說明:
http://www.jetmaven.net/contents/documents/p_spring_junit_combination.php
| |||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
25 | 26 | 27 | 28 | 1 | 2 | 3 | |||
4 | 5 | 6 | 7 | 8 | 9 | 10 | |||
11 | 12 | 13 | 14 | 15 | 16 | 17 | |||
18 | 19 | 20 | 21 | 22 | 23 | 24 | |||
25 | 26 | 27 | 28 | 29 | 30 | 31 | |||
1 | 2 | 3 | 4 | 5 | 6 | 7 |
用StrutsTestCase能很好的對Struts來進行測試,可是如果時用Spring來管理Struts的action的時候,用StrutsTestCase的常規方式是不能進行測試的,以下的一個文章對此有很好的說明:
http://www.jetmaven.net/contents/documents/p_spring_junit_combination.php