@Test void testNewLoadInvalidConfiguration() throws RedPenException{ assertThrows(RedPenException.class, () -> { String sampleConfigString = "<redpen-conf lang=\"en\">" + "<validators>" + "<validator name=\"SentenceLength\">" + "<property name=\"max_length\" value=\"200\" />" + "</validator>" + "<validator name=\"MaxParagraphNumber\" />" + "</validators>" + "<symbols>" + "<symbol name=\"EXCLAMATION_MARK\" value=\"!\" invalid-chars=\"！\" after-space=\"true\" />" + "</symbols>" + "<redpen-conf>"; new ConfigurationLoader().loadFromString(sampleConfigString); }); }
public Configuration loadFromString(String configString) throws RedPenException { return loadFromString(configString, null); }
ConfigurationLoader { public Configuration loadFromString(String configString) throws RedPenException { return loadFromString(configString, null); } }
ConfigurationLoader { public Configuration loadFromString(String configString) throws RedPenException { return loadFromString(configString, null); }  }
ConfigurationLoader { public Configuration loadFromString(String configString) throws RedPenException { return loadFromString(configString, null); }  Configuration load(File configFile); Configuration loadFromResource(String resourcePath); Configuration loadFromResource(String resourcePath, File base); Configuration loadFromString(String configString); Configuration loadFromString(String configString, File base); Configuration load(InputStream stream); Configuration load(InputStream stream, File base); ConfigurationLoader secure(); }
ConfigurationLoader { public Configuration loadFromString(String configString) throws RedPenException { return loadFromString(configString, null); }  Configuration load(File configFile); Configuration loadFromResource(String resourcePath); Configuration loadFromResource(String resourcePath, File base); Configuration loadFromString(String configString); Configuration loadFromString(String configString, File base); Configuration load(InputStream stream); Configuration load(InputStream stream, File base); ConfigurationLoader secure();  }