@@ -0,0 +1,1621 @@
+package de.hsmannheim.iws2014.analyzers;%0A%0Aimport org.apache.lucene.analysis.standard.StandardAnalyzer;%0Aimport org.apache.lucene.index.DirectoryReader;%0Aimport org.apache.lucene.queryparser.simple.SimpleQueryParser;%0Aimport org.apache.lucene.search.IndexSearcher;%0Aimport org.apache.lucene.search.TopDocs;%0Aimport org.apache.lucene.store.Directory;%0Aimport org.apache.lucene.store.RAMDirectory;%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0Aimport java.util.Arrays;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0Apublic class PiglatinTest %7B%0A%0A    private String%5B%5D terms = new String%5B%5D %7B%0A            %22foobar%22, %22gumba%22, %22trantual%22, %22alfredolino%22, %22ugulu%22, %22bla%22%0A    %7D;%0A%0A     @Test%0A    public void test_without_analyzer() throws Exception %7B%0A         RAMDirectory dir = new RAMDirectory();%0A         CustomAnalyzingIndexer indexer = new CustomAnalyzingIndexer(new StandardAnalyzer(), dir);%0A         indexer.index(Arrays.asList(terms));%0A%0A         TopDocs foobar = contentSearch(%22foobar%22, dir);%0A         assertThat(foobar.totalHits, is(equalTo(1)));%0A%0A         TopDocs oobarfay = contentSearch(%22oobarfay%22, dir);%0A         assertThat(oobarfay.totalHits, is(equalTo(0)));%0A     %7D%0A%0A    private static TopDocs contentSearch(String query, Directory directory) throws IOException %7B%0A        IndexSearcher indexSearcher = new IndexSearcher(DirectoryReader.open(directory));%0A        SimpleQueryParser queryParser = new SimpleQueryParser(new StandardAnalyzer(), %22content%22);%0A        return indexSearcher.search(queryParser.parse(query), 1000);%0A    %7D%0A%7D%0A

Add test with standard analyzer