Session session = TestRepository.getInstance().login();
try {
session.getNamespacePrefix("test-namespace3");
// Ignore test case, node type and namespace already registered
} catch (NamespaceException e1) {
JackrabbitNodeTypeManager ntm = (JackrabbitNodeTypeManager)
session.getWorkspace().getNodeTypeManager();
ntm.registerNodeTypes(
TestAll.class.getResourceAsStream(TEST_NS_CND_NODETYPES),
JackrabbitNodeTypeManager.TEXT_X_JCR_CND);
try {
session.getNamespacePrefix("test-namespace3");
} catch (NamespaceException e2) {