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