Package org.semanticweb.owlapi.change

Examples of org.semanticweb.owlapi.change.RemoveImportData


    }

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


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

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

        return new RemoveImportData(mockDeclaration);
    }

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

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

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

        assertNotNull(data.createOntologyChange(mockOntology));
    }

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

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

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

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

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

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

            private static final long serialVersionUID = 1L;

            @Override
View Full Code Here

TOP

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

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.