@Test(expected = IllegalArgumentException.class) public void setLabels_WHEN_ExpressionDoesnNotMatchPattern_ThrowException() { final MapperConfig mapperConfig = new MapperConfig(); final Map<String, String> labels = new HashMap<String, String>(); labels.put("valid", "${0}"); labels.put("not valid", "${0}"); mapperConfig.setLabels(labels); }
public void setLabels(final Map<String, String> labels) { validateLabels(labels); this.labels = labels; }
MapperConfig { public void setLabels(final Map<String, String> labels) { validateLabels(labels); this.labels = labels; } }
MapperConfig { public void setLabels(final Map<String, String> labels) { validateLabels(labels); this.labels = labels; } MapperConfig();   MapperConfig(final String match);  MapperConfig(final String match, final String name, final Map<String, String> labels); }
MapperConfig { public void setLabels(final Map<String, String> labels) { validateLabels(labels); this.labels = labels; } MapperConfig();   MapperConfig(final String match);  MapperConfig(final String match, final String name, final Map<String, String> labels); @Override String toString(); String getMatch(); void setMatch(final String match); String getName(); void setName(final String name); Map<String, String> getLabels(); void setLabels(final Map<String, String> labels); @Override boolean equals(final Object o); @Override int hashCode(); }
MapperConfig { public void setLabels(final Map<String, String> labels) { validateLabels(labels); this.labels = labels; } MapperConfig();   MapperConfig(final String match);  MapperConfig(final String match, final String name, final Map<String, String> labels); @Override String toString(); String getMatch(); void setMatch(final String match); String getName(); void setName(final String name); Map<String, String> getLabels(); void setLabels(final Map<String, String> labels); @Override boolean equals(final Object o); @Override int hashCode();  }