public static void assertMixinNodeType ( final Node node , final String mixinType ) throws RepositoryException { for ( final NodeType nt : node . getMixinNodeTypes ( ) ) { if ( mixinType . equals ( nt . getName ( ) ) ) { return ; } } fail ( "Node " + node . getPath ( ) + " has no mixin type " + mixinType ) ; }
Asserts one of the node s mixin type equals the specified nodetype