Examples of removeReference()


Examples of org.apache.stanbol.entityhub.servicesapi.model.Representation.removeReference()

    }

    @Test(expected = IllegalArgumentException.class)
    public void testNullFieldRemoveReference() {
        Representation rep = createRepresentation(null);
        rep.removeReference(null, "urn:test");
    }

    @Test(expected = IllegalArgumentException.class)
    public void testNullFieldSet() {
        Representation rep = createRepresentation(null);
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.model.Representation.removeReference()

    }

    @Test(expected = IllegalArgumentException.class)
    public void testEmptyFieldRemoveReference() {
        Representation rep = createRepresentation(null);
        rep.removeReference("", "urn:test");
    }

    @Test(expected = IllegalArgumentException.class)
    public void testEmptyFieldSet() {
        Representation rep = createRepresentation(null);
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.model.Representation.removeReference()

        Representation rep = createRepresentation(null);
        // Test removal for References
        String strRef = "urn:testValue";
        rep.addReference(field, strRef);
        assertTrue(asCollection(rep.getFieldNames()).contains(field));
        rep.removeReference(field, strRef);
        assertFalse(asCollection(rep.getFieldNames()).contains(field));

        Reference ref = vf.createReference("urn:testValue2");
        rep.add(field, ref);
        assertTrue(asCollection(rep.getFieldNames()).contains(field));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.