assertFalse( "", Node.ANY.matches( null ) );
}
public void testDataMatches()
{
TypeMapper tm = TypeMapper.getInstance();
RDFDatatype dt1 = tm.getTypeByValue( new Integer( 10 ) );
RDFDatatype dt2 = tm.getTypeByValue( new Short( (short) 10 ) );
Node a = Node.createLiteral( "10", "", dt1 );
Node b = Node.createLiteral( "10", "", dt2 );
assertDiffer( "types must make a difference", a, b );
assertTrue( "A and B must express the same value", a.sameValueAs( b ) );
assertTrue( "matching literals must respect sameValueAs", a.matches( b ) );