Examples of RemoveOntologyAnnotationData


Examples of org.semanticweb.owlapi.change.RemoveOntologyAnnotationData

    @Nonnull
    private final OWLOntology mockOntology = mock(OWLOntology.class);

    @Nonnull
    private RemoveOntologyAnnotationData createData() {
        return new RemoveOntologyAnnotationData(mockAnnotation);
    }
View Full Code Here

Examples of org.semanticweb.owlapi.change.RemoveOntologyAnnotationData

        return new RemoveOntologyAnnotationData(mockAnnotation);
    }

    @Test
    public void testEquals() {
        RemoveOntologyAnnotationData data1 = createData();
        RemoveOntologyAnnotationData data2 = createData();
        assertEquals(data1, data2);
        assertEquals(data1.hashCode(), data2.hashCode());
    }
View Full Code Here

Examples of org.semanticweb.owlapi.change.RemoveOntologyAnnotationData

        assertEquals(data1.hashCode(), data2.hashCode());
    }

    @Test
    public void testGettersReturnNotNull() {
        RemoveOntologyAnnotationData data = createData();
        assertNotNull(data.getAnnotation());
        assertNotNull(data.createOntologyChange(mockOntology));
    }
View Full Code Here

Examples of org.semanticweb.owlapi.change.RemoveOntologyAnnotationData

        assertNotNull(data.createOntologyChange(mockOntology));
    }

    @Test
    public void testGettersEquals() {
        RemoveOntologyAnnotationData data = createData();
        assertEquals(mockAnnotation, data.getAnnotation());
    }
View Full Code Here

Examples of org.semanticweb.owlapi.change.RemoveOntologyAnnotationData

        assertEquals(mockAnnotation, data.getAnnotation());
    }

    @Test
    public void testCreateOntologyChange() {
        RemoveOntologyAnnotationData data = createData();
        RemoveOntologyAnnotation change = data
                .createOntologyChange(mockOntology);
        assertEquals(mockOntology, change.getOntology());
        assertEquals(mockAnnotation, change.getAnnotation());
    }
View Full Code Here

Examples of org.semanticweb.owlapi.change.RemoveOntologyAnnotationData

        assertEquals(mockAnnotation, change.getAnnotation());
    }

    @Test
    public void testGetChangeData() {
        RemoveOntologyAnnotationData data = createData();
        RemoveOntologyAnnotation change = new RemoveOntologyAnnotation(
                mockOntology, mockAnnotation);
        assertEquals(change.getChangeData(), data);
    }
View Full Code Here

Examples of org.semanticweb.owlapi.change.RemoveOntologyAnnotationData

    }

    @Nonnull
    @Override
    public OWLOntologyChangeData getChangeData() {
        return new RemoveOntologyAnnotationData(getAnnotation());
    }
View Full Code Here

Examples of org.semanticweb.owlapi.change.RemoveOntologyAnnotationData

            public String getName() {
                return super.getName();
            }
        }.getName());
        assertEquals("RemoveOntologyAnnotationData",
                new RemoveOntologyAnnotationData(mock(OWLAnnotation.class)) {

                    private static final long serialVersionUID = 1L;

                    @Override
                    public String getName() {
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.