private void doTwoWayMatchingTest( MatchType matchType, int matchRatio, int fixedRatio, int parallel) throws Exception { Match g = new Match(); g.initMatch(matchType, 2); g.matchRatio = matchRatio; g.fixedRatio = fixedRatio; g.parallelMatchingMode = parallel; g.outfilePath = outfilePath; String infileName = "testing/match_test_2way.txt"; g.addMatchGroup("0"); g.addMatchGroup("1"); g.addPatients(infileName); g.run(); }