/** * Main method for using the CheckOptionHandler. * * @param args the options to the CheckOptionHandler */ public static void main(String[] args) { CheckOptionHandler check = new CheckOptionHandler(); runCheck(check, args); if (check.getSuccess()) { System.exit(0); } else { System.exit(1); } } }
/** * Called by JUnit before each test method. * * @throws Exception if an error occurs */ @Override protected void setUp() throws Exception { super.setUp(); m_OptionTester = new CheckOptionHandler(); m_OptionTester.setOptionHandler(getOptionHandler()); m_OptionTester.setUserOptions(new String[0]); m_OptionTester.setSilent(true); }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. * Sets the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Called by JUnit before each test method. * * @throws Exception if an error occurs */ @Override protected void setUp() throws Exception { super.setUp(); m_OptionTester = new CheckOptionHandler(); m_OptionTester.setOptionHandler(getOptionHandler()); m_OptionTester.setUserOptions(new String[0]); m_OptionTester.setSilent(true); }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. * Sets the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
public void testCanonicalUserOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkCanonicalUserOptions()) { fail("setOptions method failed"); } }
public void testResettingOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkResettingOptions()) { fail("Resetting of options failed"); } }
public void testResettingOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkResettingOptions()) { fail("Resetting of options failed"); } }
public void testSetOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkSetOptions()) { fail("setOptions method failed"); } }
public void testCanonicalUserOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkCanonicalUserOptions()) { fail("setOptions method failed"); } }
public void testRemainingOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkRemainingOptions()) { fail("There were leftover options"); } }
public void testListOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkListOptions()) { fail("Options cannot be listed via listOptions"); } }
public void testSetOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkSetOptions()) { fail("setOptions method failed"); } }
public void testListOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkListOptions()) { fail("Options cannot be listed via listOptions"); } }
public void testRemainingOptions() { CheckOptionHandler optionHandler = new CheckOptionHandler(); DictionaryBuilder builder = new DictionaryBuilder(); optionHandler.setOptionHandler(builder); if (!optionHandler.checkRemainingOptions()) { fail("There were leftover options"); } }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. Sets * the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(getGenerator()); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. Sets * the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(getGenerator()); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. Sets * the search return from the getSearch() method. * * @return the fully configured CheckOptionHandler * @see #getSearch() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(getSearch()); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler uses for testing the option handling. * Sets the NearestNeighbourSearch returned from the * getNearestNeighbourSearch() method * * @return the fully configured CheckOptionHandler * @see #getNearestNeighbourSearch() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(getNearestNeighbourSearch()); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. Sets * the classifier return from the getClassifier() method. * * @return the fully configured CheckOptionHandler * @see #getClassifier() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler((OptionHandler) getClassifier()); result.setUserOptions(new String[0]); result.setSilent(true); return result; }