fail("Create repository " + name);
}
}
protected void createTestData(Session session) throws Exception {
JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
session.getWorkspace().getNodeTypeManager();
String cnd =
"<nt='http://www.jcp.org/jcr/nt/1.0'>\n"
+ "<mix='http://www.jcp.org/jcr/mix/1.0'>\n"
+ "[nt:myversionable] > nt:unstructured, mix:versionable\n";
manager.registerNodeTypes(
new ByteArrayInputStream(cnd.getBytes("UTF-8")),
JackrabbitNodeTypeManager.TEXT_X_JCR_CND);
Node root = session.getRootNode();
Node test = root.addNode("test", "nt:unstructured");