Package org.semanticweb.owlapi.change

Examples of org.semanticweb.owlapi.change.AddImportData


    }

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


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

    @Nonnull
    private AddImportData createData() {
        return new AddImportData(mockDeclaration);
    }
View Full Code Here

        return new AddImportData(mockDeclaration);
    }

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

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

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

        assertNotNull(data.createOntologyChange(mockOntology));
    }

    @Test
    public void testGettersEquals() {
        AddImportData data = createData();
        assertEquals(mockDeclaration, data.getDeclaration());
    }
View Full Code Here

        assertEquals(mockDeclaration, data.getDeclaration());
    }

    @Test
    public void testCreateOntologyChange() {
        AddImportData data = createData();
        AddImport change = data.createOntologyChange(mockOntology);
        assertEquals(mockOntology, change.getOntology());
        assertEquals(mockDeclaration, change.getImportDeclaration());
    }
View Full Code Here

        assertEquals(mockDeclaration, change.getImportDeclaration());
    }

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

            @Override
            public String getName() {
                return super.getName();
            }
        }.getName());
        assertEquals("AddImportData", new AddImportData(
                mock(OWLImportsDeclaration.class)) {

            private static final long serialVersionUID = 1L;

            @Override
View Full Code Here

TOP

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

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.