StyleStringGenerator { public String getStyleString(int width, int height, boolean interactive, String colorHex) { return new StringBuilder() .append("{ style: 'points', color: '") .append(colorHex) .append("', size: [") .append(width) .append("px, ") .append(height) .append("px], ") .append("collide: false, interactive: ") .append(interactive) .append(" }") .toString(); }  String getStyleString(int width, int height, boolean interactive, String colorHex);  }
@Test public void defaultStyleString() throws Exception { assertThat(generator.getStyleString(50, 50, true, "#FFFFFF")).isEqualTo("{ style: 'points', " + "color: '#FFFFFF', size: [50px, 50px], collide: false, interactive: true }"); }