Package com.mozilla.grouperfish.tools.firefox_input

Examples of com.mozilla.grouperfish.tools.firefox_input.OpinionStream


        TsvReaderTest.check(fixture.in, fixture.out);
    }

    private void checkDocuments(Fixture fixture) {
        final Iterable<Document> opinions =
            new OpinionStream(new ByteArrayInputStream(fixture.in.getBytes(StreamTool.UTF8)));
        int i = 0;
        for (final Document opinion : opinions) {
            assertNotNull(opinion);
            assertNotNull(opinion.id());
            assertNotNull(opinion.fields());
View Full Code Here


    }

    public void testShort() {
        checkReader(Fixture.TOO_SHORT);
        final Iterable<Document> opinions =
            new OpinionStream(new ByteArrayInputStream(Fixture.TOO_SHORT.in.getBytes(StreamTool.UTF8)));
        for (final Document opinion : opinions) {
            // too short rows should be skipped
            fail(opinion.id());
        }
    }
View Full Code Here

TOP

Related Classes of com.mozilla.grouperfish.tools.firefox_input.OpinionStream

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.