CAS Server 3.1 Release Candidate 2
Philip Brusten
philip.brusten at cc.kuleuven.be
Fri Jun 22 09:40:54 EDT 2007
Scott Battaglia wrote:
> Philip,
>
> Does the text file still report the same error?
Ok... one step further...
The problem with the test about Google were solved after installing
libgnucrypto-java under debian.
Next I saw in the Surefire-report I was missing the xml-security
library. I downloaded the library from
http://xml.apache.org/security/dist/java-library/
I installed the library in my java classpath.
But, another error arrises...
mvn package
...
Failed tests:
testSaveAndGet(org.jasig.cas.services.DefaultServicesManagerImplTests)
testDeleteService(org.jasig.cas.services.web.ManageRegisteredServicesMultiActionControllerTests)
Tests in error:
testEditRegisteredServiceWithValues(org.jasig.cas.services.web.RegisteredServiceSimpleFormControllerTests)
The surefire-report indicate the following report this time:
<testcase time="0.002" name="testSaveAndGet">
<failure
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertNotNull(Assert.java:220)
at junit.framework.Assert.assertNotNull(Assert.java:213)
at
org.jasig.cas.services.DefaultServicesManagerImplTests.testSaveAndGet(DefaultServicesManagerImplTests.java:50)
at
org.jasig.cas.services.DefaultServicesManagerImplTests.testSaveAndGet(DefaultServicesManagerImplTests.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
</failure>
<testcase time="0.031" name="testDeleteService">
<failure type="junit.framework.AssertionFailedError"
message="expected:&lt;name&gt; but
was:&lt;&gt;">junit.framework.AssertionFailedError:
expected:&name& but was:&&
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:71)
at
org.jasig.cas.services.web.ManageRegisteredServicesMultiActionControllerTests.testDeleteService(ManageRegisteredServicesMultiActionControllerTests.java:55)
at
org.jasig.cas.services.web.ManageRegisteredServicesMultiActionControllerTests.testDeleteService(ManageRegisteredServicesMultiActionControllerTests.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
</failure>
<testcase time="0.006" name="testEditRegisteredServiceWithValues">
<error type="java.lang.IllegalArgumentException" message="Target
must not be null">java.lang.IllegalArgumentException: Target must not be
null
at org.springframework.util.Assert.notNull(Assert.java:112)
at
org.springframework.validation.DataBinder.&init&(DataBinder.java:145)
at
org.springframework.web.bind.WebDataBinder.&init&(WebDataBinder.java:83)
at
org.springframework.web.bind.ServletRequestDataBinder.&init&(ServletRequestDataBinder.java:80)
at
org.springframework.web.servlet.mvc.BaseCommandController.createBinder(BaseCommandController.java:414)
at
org.springframework.web.servlet.mvc.BaseCommandController.bindAndValidate(BaseCommandController.java:366)
at
org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:248)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at
org.jasig.cas.services.web.RegisteredServiceSimpleFormControllerTests.testEditRegisteredServiceWithValues(RegisteredServiceSimpleFormControllerTests.java:123)
at
org.jasig.cas.services.web.RegisteredServiceSimpleFormControllerTests.testEditRegisteredServiceWithValues(RegisteredServiceSimpleFormControllerTests.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
</error>
</testcase>
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
More information about the cas
mailing list