/** * Called by JUnit before each test method. * * @exception Exception if an error occurs reading the example instances. */ @Override protected void setUp() throws Exception { super.setUp(); copyResourceToTmp("RegExpFromFile.txt"); }
/** * Called by JUnit after each test method. */ @Override protected void tearDown() { deleteFileFromTmp("RegExpFromFile.txt"); super.tearDown(); }
public static void main(String[] args) { TestRunner.run(suite()); } }
/** * Used to create an instance of a specific stopwords scheme. * * @return a suitably configured <code>StopwordsHandler</code> value */ @Override public StopwordsHandler getStopwords() { RegExpFromFile result; result = new RegExpFromFile(); result.setStopwords(new File(getTmpDirectory() + File.separator + "RegExpFromFile.txt")); return result; }
/** * Used to create an instance of a specific stopwords scheme. * * @return a suitably configured <code>StopwordsHandler</code> value */ @Override public StopwordsHandler getStopwords() { RegExpFromFile result; result = new RegExpFromFile(); result.setStopwords(new File(getTmpDirectory() + File.separator + "RegExpFromFile.txt")); return result; }
/** * Called by JUnit after each test method. */ @Override protected void tearDown() { deleteFileFromTmp("RegExpFromFile.txt"); super.tearDown(); }
/** * Called by JUnit before each test method. * * @exception Exception if an error occurs reading the example instances. */ @Override protected void setUp() throws Exception { super.setUp(); copyResourceToTmp("RegExpFromFile.txt"); }
public static void main(String[] args) { TestRunner.run(suite()); } }