Package org.apache.pig.piggybank.evaluation.util.apachelogparser

Examples of org.apache.pig.piggybank.evaluation.util.apachelogparser.SearchTermExtractor


        assertNotNull(new SearchEngineExtractor());
    }

    @Test
    public void testTests() throws Exception {
        SearchTermExtractor searchTermExtractor = new SearchTermExtractor();
        int testCount = 0;
        Tuple input=DefaultTupleFactory.getInstance().newTuple(1);
        for (String key : tests.keySet()) {
            String expected = tests.get(key);

            input.set(0,key);
            assertEquals(expected, searchTermExtractor.exec(input));
            testCount++;
        }
        assertEquals(tests.size(), testCount);
    }
View Full Code Here


        assertNotNull(new SearchEngineExtractor());
    }

    @Test
    public void testTests() throws Exception {
        SearchTermExtractor searchTermExtractor = new SearchTermExtractor();
        int testCount = 0;
        Tuple input=DefaultTupleFactory.getInstance().newTuple(1);
        for (String key : tests.keySet()) {
            String expected = tests.get(key);

            input.set(0,key);
            assertEquals(expected, searchTermExtractor.exec(input));
            testCount++;
        }
        assertEquals(tests.size(), testCount);
    }
View Full Code Here

TOP

Related Classes of org.apache.pig.piggybank.evaluation.util.apachelogparser.SearchTermExtractor

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.