Package org.semanticweb.owlapi.change

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


        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

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

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

        assertNotNull(data.createOntologyChange(mockOntology));
    }

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

        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

        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

    }

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

            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

Related Classes of org.semanticweb.owlapi.change.RemoveOntologyAnnotationData

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.