在core中mvn install报错,如何解决?谢谢

建安 发布于 2012/04/11 22:54
阅读 1K+
收藏 0
Results :

Failed tests:   validateWithException(org.springside.modules.beanvalidator.BeanV
alidatorsTest)
  validate(org.springside.modules.beanvalidator.BeanValidatorsTest)

Tests run: 52, Failures: 2, Errors: 0, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:06.415s
[INFO] Finished at: Wed Apr 11 22:37:24 CST 2012
[INFO] Final Memory: 19M/49M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
12:test (default-test) on project springside-core: There are test failures.
[ERROR]
[ERROR] Please refer to D:\springside-4.0.0.RC2\modules\core\target\surefire-rep
orts for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
加载中
0
江南白衣
江南白衣
UT有集成測試,不應該出錯的。實在不行就跑mvn install -Dmaven.test.skip=true
0
everyone1
everyone1
国际化问题,你看看把测试用例验证改成中文试试
assertTrue(StringUtils.contains(result, "不是一个合法的电子邮件地址"));
assertTrue(StringUtils.contains(result, "不能为空"));
0
江南白衣
江南白衣
谢谢,呆会改正一下用例。
返回顶部
顶部