/** * 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("WordsFromFile.txt"); }
/** * Called by JUnit after each test method. */ @Override protected void tearDown() { deleteFileFromTmp("WordsFromFile.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() { WordsFromFile result; result = new WordsFromFile(); result.setStopwords(new File(getTmpDirectory() + File.separator + "WordsFromFile.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() { WordsFromFile result; result = new WordsFromFile(); result.setStopwords(new File(getTmpDirectory() + File.separator + "WordsFromFile.txt")); return result; }
/** * Called by JUnit after each test method. */ @Override protected void tearDown() { deleteFileFromTmp("WordsFromFile.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("WordsFromFile.txt"); }
public static void main(String[] args) { TestRunner.run(suite()); } }