Package edu.stanford.bmir.protege.web.server.owlapi

Examples of edu.stanford.bmir.protege.web.server.owlapi.UploadedProjectSourcesExtractor


    @Test
    public void shouldExtractSourcesFromZipFile() throws IOException {
        // Given
        when(zipInputStreamChecker.isZipFile(inputFile)).thenReturn(true);
        UploadedProjectSourcesExtractor extractor = new UploadedProjectSourcesExtractor(
                zipInputStreamChecker,
                zipArchiveProjectSourcesExtractor,
                singleDocumentProjectSourcesExtractor
        );
        // When
        extractor.extractProjectSources(inputFile);
        // Then
        verify(zipArchiveProjectSourcesExtractor, times(1)).extractProjectSources(inputFile);
    }
View Full Code Here


    @Test
    public void shouldExtractNonZipFileUsingSingleDocumentExtractor() throws IOException {
        // Given
        when(zipInputStreamChecker.isZipFile(inputFile)).thenReturn(false);
        UploadedProjectSourcesExtractor extractor = new UploadedProjectSourcesExtractor(
                zipInputStreamChecker,
                zipArchiveProjectSourcesExtractor,
                singleDocumentProjectSourcesExtractor
        );
        // When
        extractor.extractProjectSources(inputFile);
        // Then
        verify(singleDocumentProjectSourcesExtractor, times(1)).extractProjectSources(inputFile);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.server.owlapi.UploadedProjectSourcesExtractor

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.