Page History
...
General Setup | Specifics | Preferred Approach | RemarkExample |
---|---|---|---|
Class under tests operates on JCR Node | only few calls to the Node | use Mockito mock | |
need a simple hierarchy of Nodes | directly use MockNode() | ||
need a simple hierarchy of Nodes but with several properties | use SessionTestUtil to instantiate MockSession + MockNodes from propertiesStream or String | ||
need a complex hierarchy of Nodes, real NodeTypes or issue real queries | use RepositoryTestCase |
...
Overview
Content Tools