@Test void testDefaultValues() throws ConfigurationException { RemoveNewLinesMapper mapper = new RemoveNewLinesMapper(); assertFalse(mapper.combineSpaces); assertTrue(mapper.newLineAtEnd); SimpleConfiguration cfg = new SimpleConfiguration(); mapper.setConfiguration(cfg); assertFalse(mapper.combineSpaces); assertTrue(mapper.newLineAtEnd); }
@Override public void setConfiguration(Configuration cfg) throws ConfigurationException { combineSpaces = cfg.getBoolean("combine-spaces", false); newLineAtEnd = cfg.getBoolean("newline-at-end", true); }
RemoveNewLinesMapper implements ByteArrayMapper, Configurable { @Override public void setConfiguration(Configuration cfg) throws ConfigurationException { combineSpaces = cfg.getBoolean("combine-spaces", false); newLineAtEnd = cfg.getBoolean("newline-at-end", true); } }
RemoveNewLinesMapper implements ByteArrayMapper, Configurable { @Override public void setConfiguration(Configuration cfg) throws ConfigurationException { combineSpaces = cfg.getBoolean("combine-spaces", false); newLineAtEnd = cfg.getBoolean("newline-at-end", true); }  }
RemoveNewLinesMapper implements ByteArrayMapper, Configurable { @Override public void setConfiguration(Configuration cfg) throws ConfigurationException { combineSpaces = cfg.getBoolean("combine-spaces", false); newLineAtEnd = cfg.getBoolean("newline-at-end", true); }  @Override byte[] apply(byte[] bytes); @Override void setConfiguration(Configuration cfg); }
RemoveNewLinesMapper implements ByteArrayMapper, Configurable { @Override public void setConfiguration(Configuration cfg) throws ConfigurationException { combineSpaces = cfg.getBoolean("combine-spaces", false); newLineAtEnd = cfg.getBoolean("newline-at-end", true); }  @Override byte[] apply(byte[] bytes); @Override void setConfiguration(Configuration cfg);  }