@Test public final void testBuildMaintainerPropertiesJsonShouldCreateProperJson() { MaintainerProperties maintainerProperties = new MaintainerProperties("cron", "method", 10, "10S"); String expected = "{\"cronExpression\":\"cron\",\"maintainerMethod\":\"method\",\"fileLimit\":10,\"timeLimit\":\"10S\"}"; String actual = underTest.buildMaintainerPropertiesJson(maintainerProperties); assertEquals(actual, expected); }
public String buildMaintainerPropertiesJson(final MaintainerProperties maintainerProperties) { Gson gson = new Gson(); return gson.toJson(maintainerProperties); }
MaintainerPropertiesJsonBuilder { public String buildMaintainerPropertiesJson(final MaintainerProperties maintainerProperties) { Gson gson = new Gson(); return gson.toJson(maintainerProperties); } }
MaintainerPropertiesJsonBuilder { public String buildMaintainerPropertiesJson(final MaintainerProperties maintainerProperties) { Gson gson = new Gson(); return gson.toJson(maintainerProperties); }  }
MaintainerPropertiesJsonBuilder { public String buildMaintainerPropertiesJson(final MaintainerProperties maintainerProperties) { Gson gson = new Gson(); return gson.toJson(maintainerProperties); }  String buildMaintainerPropertiesJson(final MaintainerProperties maintainerProperties); }
MaintainerPropertiesJsonBuilder { public String buildMaintainerPropertiesJson(final MaintainerProperties maintainerProperties) { Gson gson = new Gson(); return gson.toJson(maintainerProperties); }  String buildMaintainerPropertiesJson(final MaintainerProperties maintainerProperties);  }