![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Assignee:
|
Christoph Meier
|
|
Components:
|
persistence, security |
|
Created:
|
15/Jan/14 7:56 PM
|
|
Description:
|
fix DefaultForumManagerTest#testCreatingForumShouldUseUniqueCleanUpNameAndAddTitleProperty
and #testCreatingForumShouldCleanUpNameAddTitlePropertyAndCreateAdhocRoles.
These 2 methods fail with Unexpected method call getWorkspace(); see stackTrace
java.lang.AssertionError:
Unexpected method call getWorkspace():
isExist("/mon-forum"): expected: 1, actual: 0
getRoot(): expected: 1, actual: 0
at org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:32)
at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:61)
at com.sun.proxy.$Proxy5.getWorkspace(Unknown Source)
at info.magnolia.cms.core.Path.getUniqueLabel(Path.java:148)
at info.magnolia.module.forum.DefaultForumManager.createForum(DefaultForumManager.java:133)
at info.magnolia.module.forum.DefaultForumManager.createForum(DefaultForumManager.java:126)
at info.magnolia.module.forum.DefaultForumManagerTest.testCreatingForumShouldCleanUpNameAddTitlePropertyAndCreateAdhocRoles(DefaultForumManagerTest.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
java.lang.AssertionError:
Unexpected method call getWorkspace():
isExist("/mon-forum"): expected: 1, actual: 0
isExist("/mon-forum0"): expected: 1, actual: 0
getRoot(): expected: 1, actual: 0
at org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:32)
at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:61)
at com.sun.proxy.$Proxy2.getWorkspace(Unknown Source)
at info.magnolia.cms.core.Path.getUniqueLabel(Path.java:148)
at info.magnolia.module.forum.DefaultForumManager.createForum(DefaultForumManager.java:133)
at info.magnolia.module.forum.DefaultForumManager.createForum(DefaultForumManager.java:126)
at info.magnolia.module.forum.DefaultForumManagerTest.testCreatingForumShouldUseUniqueCleanUpNameAndAddTitleProperty(DefaultForumManagerTest.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
|
|
Fix Versions:
|
3.3 |
|
Project:
|
Magnolia Forum Module
|
|
Priority:
|
Neutral
|
|
Reporter:
|
Christoph Meier
|
|
Security Level:
|
Public |
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------