QValue v = factory.create(URI_STRING, PropertyType.URI);
assertTrue("Type of a date value must be PropertyType.URI.", v.getType() == PropertyType.URI);
}
public void testUriValueEquality() throws RepositoryException, URISyntaxException {
QValue v = factory.create(URI_STRING, PropertyType.URI);
QValue otherV = factory.create(URI_STRING, PropertyType.URI);
assertEquals("Uri values created from the same string must be equal.", v, otherV);
URI uri = new URI(URI_STRING);
v = factory.create(uri);
assertEquals("Uri values created from the same string must be equal.", v, otherV);