package ir_course;

/**
 * Created by martin on 4/9/14.
 */
public class SearchSuite {

    public static final String corpusPath = "corpus_part2.xml";
    private static String[] defaults = {corpusPath};
    public static final String BM25 = "bm25";
    private static String[] bm25Standard = {corpusPath, BM25};
    public static final String PORTER = "PORTER";
    private static String[] bm25Porter = {corpusPath, BM25, PORTER};
    private static String[] vsmPorter = {corpusPath, PORTER};
    public static final String SIMPLE = "SIMPLE";
    private static String[] vsmSimple = {corpusPath, SIMPLE};
    private static String[] bm25Simple = {corpusPath, BM25, SIMPLE};
    public static void main(String[] args) {
        LuceneSearchApp app = new LuceneSearchApp();
        app.main(defaults);
        app.main(bm25Standard);
        app.main(bm25Porter);
        app.main(bm25Simple);
        app.main(vsmSimple);
        app.main(vsmPorter);
    }
}

package ir_course;

/**
 * Created by martin on 4/9/14.
 */
public class SearchSuite {

    public static final String corpusPath = "corpus_part2.xml";
    private static String[] defaults = {corpusPath};
    public static final String BM25 = "bm25";
    private static String[] bm25Standard = {corpusPath, BM25};
    public static final String PORTER = "PORTER";
    private static String[] bm25Porter = {corpusPath, BM25, PORTER};
    private static String[] vsmPorter = {corpusPath, PORTER};
    public static final String SIMPLE = "SIMPLE";
    private static String[] vsmSimple = {corpusPath, SIMPLE};
    private static String[] bm25Simple = {corpusPath, BM25, SIMPLE};
    public static void main(String[] args) {
        LuceneSearchApp app = new LuceneSearchApp();
        app.main(defaults);
        app.main(bm25Standard);
        app.main(bm25Porter);
        app.main(bm25Simple);
        app.main(vsmSimple);
        app.main(vsmPorter);
        
        runCombination(app, "BM25", defaults, bm25Standard, bm25Porter, bm25Simple, vsmSimple, vsmPorter);
    }
    
    public static void runCombination(LuceneSearchApp app, String label, String[]... tests) {
    	for( String[] test : tests) {
    		// TODO: print label here
    		app.main(test);
    	}
    }
}

Add combination code to runner
Add combination code to runner
