我是CAS新手并且同时兼顾。
我从here下载了CAS代码。解压缩下载的zip后,我运行了gradlew.bat文件来构建CAS项目。即使我没有修改任何东西,我在构建期间得到以下错误:
org.jasig.cas.CentralAuthenticationServiceImplTests > verifyDelegateTicketGrantingTicketWithProperParams FAILED org.jasig.cas.ticket.InvalidTicketException at CentralAuthenticationServiceImplTests.java:174 47 tests completed, 1 failed :cas-server-core:test FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':cas-server-core:test'. There were failing tests. See the report at: file:///C:/Users/newbie/Downloads/cas-4.2.1/cas-server-core/build/reports/tests/index.html
由于构建失败,我尝试使用最新版本的CAS,CAS 5.0.2。 构建最新版本也会出现同样的错误:
org.apereo.cas.CentralAuthenticationServiceImplTests > verifyDelegateTicketGrantingTicketWithProperParams FAILED INVALID_TICKET at org.apereo.cas.CentralAuthenticationServiceImpl.createProxyGrantingTicket(CentralAuthenticationServiceImpl.java:256) at org.apereo.cas.CentralAuthenticationServiceImpl$$FastClassBySpringCGLIB$$d0ec6e1f.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655) at org.apereo.cas.CentralAuthenticationServiceImpl$$EnhancerBySpringCGLIB$$9bd39a43.createProxyGrantingTicket() at org.apereo.cas.CentralAuthenticationServiceImplTests.verifyDelegateTicketGrantingTicketWithProperParams(CentralAuthenticationServiceImplTests.java:175) 47 tests completed, 1 failed :core:cas-server-core:test FAILED :lintGradle FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':core:cas-server-core:test'. There were failing tests. See the report at: file:///C:/Users/newbie/Downloads/cas-5.0.2/core/cas-server-core/build/reports/tests/test/index.html
任何人都可以帮我解决/理解这个问题。
非常感谢提前。
答案 0 :(得分:0)
似乎你的gradlew.bat文件正在运行测试文件。在运行测试文件时,其中一个测试用例失败,因为您的构建失败了。如果您真的想运行测试用例,则必须修复测试用例错误(找出哪个测试用例失败以及更好地修复日志文件的原因)。否则,您可以从gradle构建文件中删除特定的测试用例或注释测试运行任务。