@Test void testConfigurationMultipleInvalids() throws RedPenException{ String sampleConfigString = "<redpen-conf lang=\"en\">" + "<validators>" + "<validator name=\"SentenceLength\" />" + "<validator name=\"MaxParagraphNumber\" />" + "</validators>" + "<symbols>" + "<symbol name=\"LEFT_SINGLE_QUOTATION_MARK\" value=\"\'\" invalid-chars=\"‘’\"/>" + "</symbols>" + "</redpen-conf>"; Configuration configuration = new ConfigurationLoader().loadFromString(sampleConfigString); assertNotNull(configuration); assertEquals('\'', configuration.getSymbolTable() .getSymbol(LEFT_SINGLE_QUOTATION_MARK).getValue()); assertEquals(2, configuration.getSymbolTable() .getSymbol(LEFT_SINGLE_QUOTATION_MARK).getInvalidChars().length); assertEquals('‘', configuration.getSymbolTable().getSymbol(LEFT_SINGLE_QUOTATION_MARK).getInvalidChars()[0]); assertEquals('’', configuration.getSymbolTable().getSymbol(LEFT_SINGLE_QUOTATION_MARK).getInvalidChars()[1]); }
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();  }