-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.9
-
None
-
Empty show more show less
-
Global Maintenance 3
-
2
Steps to reproduce
- Create a MockSession
- Create MockNodes with a camelCase primary node type (e.g. mgnl:contentNode)
- Query for the nodes (select * from [mgnl:contentNode])
Expected results
MockQueryResult returns a collection of nodes
Actual results
MockQueryResult result is empty
Development notes
The problem is in the constructor of MockQueryResult as it lowercases the passed statement and thus, the camelcase node type.
info.magnolia.test.mock.jcr.MockQueryResult line 60
this.type = StringUtils.substringBefore(StringUtils.substringAfter(statement.toLowerCase(), " from "), " where ").trim();
Acceptance criteria