@ProviderType public final class MockQueryResult extends Object implements javax.jcr.query.QueryResult
QueryResult.
Allows to manually set the expected result, optional with column names
(which are interpreted as property names of the nodes of the result list).| Constructor and Description |
|---|
MockQueryResult(List<javax.jcr.Node> nodes) |
MockQueryResult(List<javax.jcr.Node> nodes,
List<String> columnNames) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getColumnNames() |
javax.jcr.NodeIterator |
getNodes() |
javax.jcr.query.RowIterator |
getRows() |
String[] |
getSelectorNames() |
public MockQueryResult(List<javax.jcr.Node> nodes)
public String[] getColumnNames() throws javax.jcr.RepositoryException
getColumnNames in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryExceptionpublic javax.jcr.query.RowIterator getRows()
throws javax.jcr.RepositoryException
getRows in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryExceptionpublic javax.jcr.NodeIterator getNodes()
throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryExceptionpublic String[] getSelectorNames() throws javax.jcr.RepositoryException
getSelectorNames in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryExceptionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.