Package org.apache.jackrabbit.spi

Examples of org.apache.jackrabbit.spi.QValue


        QValue otherV = factory.create(REFERENCE, PropertyType.REFERENCE);
        assertEquals("Reference values created from the same string must be equal.", v, otherV);
    }

    public void testEqualityDifferentTypes() throws RepositoryException {
        QValue v = factory.create(REFERENCE, PropertyType.REFERENCE);
        QValue v2 = factory.create(REFERENCE, PropertyType.STRING);
        assertFalse(v.equals(v2));
    }
View Full Code Here


            // ok
        }
    }

    public void testWeakReferenceValueType() throws RepositoryException {
        QValue v = factory.create(REFERENCE, PropertyType.WEAKREFERENCE);
        assertTrue("Type of a date value must be PropertyType.WEAKREFERENCE.", v.getType() == PropertyType.WEAKREFERENCE);
    }
View Full Code Here

        QValue v = factory.create(REFERENCE, PropertyType.WEAKREFERENCE);
        assertTrue("Type of a date value must be PropertyType.WEAKREFERENCE.", v.getType() == PropertyType.WEAKREFERENCE);
    }

    public void testWeakReferenceValueEquality() throws RepositoryException {
        QValue v = factory.create(REFERENCE, PropertyType.WEAKREFERENCE);
        QValue otherV = factory.create(REFERENCE, PropertyType.WEAKREFERENCE);
        assertEquals("Weak reference values created from the same string must be equal.", v, otherV);
    }
View Full Code Here

        QValue otherV = factory.create(REFERENCE, PropertyType.WEAKREFERENCE);
        assertEquals("Weak reference values created from the same string must be equal.", v, otherV);
    }

    public void testEqualityDifferentTypes2() throws RepositoryException {
        QValue v = factory.create(REFERENCE, PropertyType.WEAKREFERENCE);
        QValue v2 = factory.create(REFERENCE, PropertyType.STRING);
        assertFalse(v.equals(v2));
    }
View Full Code Here

            // ok
        }
    }

    public void testUriValueType() throws RepositoryException, URISyntaxException {
        QValue v = factory.create(URI_STRING, PropertyType.URI);
        assertTrue("Type of a date value must be PropertyType.URI.", v.getType() == PropertyType.URI);
    }
View Full Code Here

        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);
View Full Code Here

        v = factory.create(uri);
        assertEquals("Uri values created from the same string must be equal.", v, otherV);
    }

    public void testEqualityDifferentTypes3() throws RepositoryException {
        QValue v = factory.create(URI_STRING, PropertyType.URI);
        QValue v2 = factory.create(URI_STRING, PropertyType.STRING);
        assertFalse(v.equals(v2));
    }
View Full Code Here

            // ok
        }
    }

    public void testNameValueType() throws IOException, RepositoryException {
        QValue v = factory.create(NameConstants.JCR_DATA);
        assertTrue(v.getType() == PropertyType.NAME);
        v = factory.create(NameConstants.JCR_DATA.toString(), PropertyType.NAME);
        assertTrue(v.getType() == PropertyType.NAME);
    }
View Full Code Here

        v = factory.create(NameConstants.JCR_DATA.toString(), PropertyType.NAME);
        assertTrue(v.getType() == PropertyType.NAME);
    }

    public void testNameValueEquality() throws IOException, RepositoryException {
        QValue v = factory.create(NameConstants.JCR_DATA);
        QValue v2 = factory.create(NameConstants.JCR_DATA.toString(), PropertyType.NAME);
        assertTrue(v.equals(v2));
    }
View Full Code Here

        QValue v2 = factory.create(NameConstants.JCR_DATA.toString(), PropertyType.NAME);
        assertTrue(v.equals(v2));
    }

    public void testNameValueGetString() throws IOException, RepositoryException {
        QValue v = factory.create(NameConstants.JCR_DATA);
        assertTrue(v.getString().equals(NameConstants.JCR_DATA.toString()));
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.spi.QValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.