public static void assertNodeTypeExists ( final Session session , final String nodeTypeName ) throws RepositoryException { final NodeTypeManager ntm = session . getWorkspace ( ) . getNodeTypeManager ( ) ; assertTrue ( "NodeType " + nodeTypeName + " does not exist" , ntm . hasNodeType ( nodeTypeName ) ) ; }
Asserts that a specific node type is registered in the workspace of the session .