Package org.semanticweb.owlapi.change

Examples of org.semanticweb.owlapi.change.AddOntologyAnnotationData


    }

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


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

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

        return new AddOntologyAnnotationData(mockAnnotation);
    }

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

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

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

        assertNotNull(data.createOntologyChange(mockOntology));
    }

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

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

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

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

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

            public String getName() {
                return super.getName();
            }
        }.getName());
        assertEquals("AddOntologyAnnotationData",
                new AddOntologyAnnotationData(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.AddOntologyAnnotationData

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.