Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlecreate MockNode using API
MockNode root = new MockNode();
root.addNode(MetaData.DEFAULT_META_NODE);
root.setProperty("stringProperty", "HelloWorld");


Setup

In order to use these testing utilities, you must add the following dependency to your project:

Code Block
<dependency>
    <groupId>info.magnolia</groupId>
    <artifactId>magnolia-core</artifactId>
    <type>test-jar</type>
    <scope>test</scope>
    <version>${magnolia.version}</version>
</dependency>