Examples of UploadedProjectSourcesExtractor


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

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

    @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
Copyright © 2018 www.massapi.com. 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.