[
https://issues.apache.org/jira/browse/CLEREZZA-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015311#comment-13015311
]
Reto Bachmann-Gmür commented on CLEREZZA-479:
---------------------------------------------
It seems the changes to the UserUtil cause some tests to fail:
$ cat
platform.mail/target/surefire-reports/org.apache.clerezza.platform.mail.MailManPermissionTest.txt
-------------------------------------------------------------------------------
Test set: org.apache.clerezza.platform.mail.MailManPermissionTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.065 sec <<<
FAILURE!
testImpliesSelf(org.apache.clerezza.platform.mail.MailManPermissionTest) Time
elapsed: 0.042 sec <<< ERROR!
java.lang.NullPointerException
at
org.apache.clerezza.platform.security.UserUtil.getUserName(UserUtil.java:68)
at
org.apache.clerezza.platform.security.UserUtil.getCurrentUserName(UserUtil.java:45)
at
org.apache.clerezza.platform.mail.MailManPermission.patternImplies(MailManPermission.java:81)
at
org.apache.clerezza.platform.mail.MailManPermission.implies(MailManPermission.java:55)
at
org.apache.clerezza.platform.mail.MailManPermissionTest.testImpliesSelf(MailManPermissionTest.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> WebID test suite
> ----------------
>
> Key: CLEREZZA-479
> URL: https://issues.apache.org/jira/browse/CLEREZZA-479
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Henry Story
>
> We need a test suite to be able to help work out where WebID authentication
> fails. This can be useful in a number of ways:
> 1. for helping developers and end users work out where a problem lies
> 2. to build test suites to test the local webid implementations.
> For 2 the result should be marked up so as to show what tests succeeded and
> where the error occurred using an ontology to be specified on the w3c webid
> working group. This will then allow other robot services to be created which
> can the send requests, broken or valid, and check if the results are correct.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira