@Test void addsAllClassMethodsInAnObject() { ClassEntry.Builder builder = new ClassEntry.Builder(); builder.add("x", new ApiEntry() { @Override protected void createDescription(StringBuilder builder) { builder.append("\"x entry\""); } }); ClassEntry entry = builder.build(); StringBuilder descBuilder = new StringBuilder(); entry.createDescription(descBuilder); assertThat(descBuilder.toString()).isEqualTo("{\"x\":\"x entry\"}"); }
@Override protected void createDescription(StringBuilder builder) { builder.append("{"); super.createDescription(builder); builder.append("}"); }
ClassEntry extends ApiEntry { @Override protected void createDescription(StringBuilder builder) { builder.append("{"); super.createDescription(builder); builder.append("}"); } }
ClassEntry extends ApiEntry { @Override protected void createDescription(StringBuilder builder) { builder.append("{"); super.createDescription(builder); builder.append("}"); } private  ClassEntry(); }
ClassEntry extends ApiEntry { @Override protected void createDescription(StringBuilder builder) { builder.append("{"); super.createDescription(builder); builder.append("}"); } private  ClassEntry();  }
ClassEntry extends ApiEntry { @Override protected void createDescription(StringBuilder builder) { builder.append("{"); super.createDescription(builder); builder.append("}"); } private  ClassEntry();   }