From bb45579a93886d197e760b1b95efa1704df5e8ca Mon Sep 17 00:00:00 2001 From: Calvin Date: Fri, 24 Feb 2012 21:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E4=BB=A5UnitTest=E9=A1=BA=E7=95=85?= =?UTF-8?q?=E8=BF=90=E8=A1=8C,=20=E5=B0=86=E6=94=BE=E5=9C=A8jenkinshosting?= =?UTF-8?q?.com=E4=B8=8A=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.txt | 1 - .../resources/applicationContext-test.xml | 2 +- .../resources/applicationContext-test.xml | 2 +- .../webapp/WEB-INF/views/utilizes/index.jsp | 10 ++++ .../applicationContext-test-functional.xml | 2 +- .../resources/applicationContext-test.xml | 2 +- .../applicationContext-core-test.xml | 2 +- modules/extension/pom.xml | 6 +++ pom.xml | 47 +++++++++++-------- 9 files changed, 48 insertions(+), 26 deletions(-) diff --git a/TODO.txt b/TODO.txt index 78e784bd..d704bb75 100644 --- a/TODO.txt +++ b/TODO.txt @@ -9,7 +9,6 @@ TODO部分: * 用Spring Data JPA代替BaseDao基类,清理Hibernate基类及相关 2.次要改动 - * 补充Showcase的utilize描述 * 整理CSS(整理项目BBS, 整理BluePrint CSS,将JQuery Validation中的milk css替换为message.css,jquery validate input框的.error替换为将替换为hightlight) * 修正Selenium Test case diff --git a/examples/mini-service/src/test/resources/applicationContext-test.xml b/examples/mini-service/src/test/resources/applicationContext-test.xml index 77bd8bc1..596cae7c 100644 --- a/examples/mini-service/src/test/resources/applicationContext-test.xml +++ b/examples/mini-service/src/test/resources/applicationContext-test.xml @@ -29,7 +29,7 @@ - + diff --git a/examples/mini-web/src/test/resources/applicationContext-test.xml b/examples/mini-web/src/test/resources/applicationContext-test.xml index 5108e1c4..ce181f54 100644 --- a/examples/mini-web/src/test/resources/applicationContext-test.xml +++ b/examples/mini-web/src/test/resources/applicationContext-test.xml @@ -29,7 +29,7 @@ - + diff --git a/examples/showcase/src/main/webapp/WEB-INF/views/utilizes/index.jsp b/examples/showcase/src/main/webapp/WEB-INF/views/utilizes/index.jsp index 7af7ca30..2e93075b 100644 --- a/examples/showcase/src/main/webapp/WEB-INF/views/utilizes/index.jsp +++ b/examples/showcase/src/main/webapp/WEB-INF/views/utilizes/index.jsp @@ -36,5 +36,15 @@
  • 使用JConsole动态修改log4j的日志等级.(路径service:jmx:rmi:///jndi/rmi://localhost:2099/jmxrmi,名称Log4j:name=log4j)
  • Schedule测试用例使用MockAppender校验日志输出.
  • + +

    其他常用工具

    +

    全部演示在org.springside.examples.showcase.utilities目录

    +
      +
    • JodaTime: 日期操作.
    • +
    • Dozer: 不同类型的对象互相复制与转换。
    • +
    • Apache Commons IO: IO操作。
    • +
    • Apache Commons Lang Validate: 防御式编程,校验输入参数.
    • +
    • Apache Commons Lang StringUtils: 字符串操作.
    • +
    \ No newline at end of file diff --git a/examples/showcase/src/test/resources/applicationContext-test-functional.xml b/examples/showcase/src/test/resources/applicationContext-test-functional.xml index b670dda6..d9c92571 100644 --- a/examples/showcase/src/test/resources/applicationContext-test-functional.xml +++ b/examples/showcase/src/test/resources/applicationContext-test-functional.xml @@ -32,7 +32,7 @@ - + diff --git a/examples/showcase/src/test/resources/applicationContext-test.xml b/examples/showcase/src/test/resources/applicationContext-test.xml index 0cfe5546..6aa1c217 100644 --- a/examples/showcase/src/test/resources/applicationContext-test.xml +++ b/examples/showcase/src/test/resources/applicationContext-test.xml @@ -30,7 +30,7 @@ - + diff --git a/modules/core/src/test/resources/applicationContext-core-test.xml b/modules/core/src/test/resources/applicationContext-core-test.xml index 80ab0df4..fed3dc05 100644 --- a/modules/core/src/test/resources/applicationContext-core-test.xml +++ b/modules/core/src/test/resources/applicationContext-core-test.xml @@ -39,7 +39,7 @@ - + diff --git a/modules/extension/pom.xml b/modules/extension/pom.xml index 1cad689d..40ed380f 100644 --- a/modules/extension/pom.xml +++ b/modules/extension/pom.xml @@ -71,6 +71,12 @@ slf4j-log4j12 true + + org.slf4j + jcl-over-slf4j + true + + log4j log4j diff --git a/pom.xml b/pom.xml index b532e265..b7f5f500 100644 --- a/pom.xml +++ b/pom.xml @@ -8,27 +8,34 @@ pom - - all - - modules/parent - modules/core - modules/extension + + all + + modules/parent + modules/core + modules/extension + examples/mini-service + examples/mini-web + examples/showcase + + + + + modules + + modules/parent + modules/core + modules/extension + + + + + examples + examples/mini-service examples/mini-web examples/showcase - support/maven-archetype - - - - - modules - - modules/parent - modules/core - modules/extension - support/maven-archetype - - - + + + \ No newline at end of file