[ http://issues.apache.org/jira/browse/COCOON-1937?page=all ]
Lars Trieloff closed COCOON-1937. --------------------------------- Resolution: Fixed > AccessorTestCase fails due to incomplete context initialization > --------------------------------------------------------------- > > Key: COCOON-1937 > URL: http://issues.apache.org/jira/browse/COCOON-1937 > Project: Cocoon > Issue Type: Bug > Components: Blocks: Templating > Reporter: Lars Trieloff > > The test cases in cocoon-template-impl fail in AccessorTestCase: > org.apache.cocoon.components.ContextResourceNotFoundException: Unable to get > the object model from the context. > at > org.apache.cocoon.components.ContextHelper.getObjectModel(ContextHelper.java:91) > at > org.apache.cocoon.components.accessor.ObjectModelAccessor.getObjectModel(ObjectModelAccessor.java:42) > at > org.apache.cocoon.components.accessor.RequestAccessor.getObject(RequestAccessor.java:30) > at > org.apache.cocoon.components.accessor.AccessorTestCase.testRequestAccessor(AccessorTestCase.java:43) > The reason seems to be that at initialization of the AccessorSelector there > is some incomplete initialization of the DefaultContext, such that no valid > object model is handed to the DefaultContext. > What is the best way to populate the DefaultContext in the test case with an > object model that contains request, session and context? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira