@Test void createsDescriptionForAllApiEntries() { JsApiCache.Builder builder = new JsApiCache.Builder(); builder.add("foo", new ApiEntry() { @Override protected void createDescription(StringBuilder builder) { builder.append("desc"); } }); JsApiCache cache = builder.build(); String description = cache.getApiDescription(); assertThat(description).isEqualTo("{\"foo\":desc}"); }
String getApiDescription() { StringBuilder builder = new StringBuilder(); builder.append("{"); super.createDescription(builder); builder.append("}"); return builder.toString(); }
JsApiCache extends ApiEntry { String getApiDescription() { StringBuilder builder = new StringBuilder(); builder.append("{"); super.createDescription(builder); builder.append("}"); return builder.toString(); } }
JsApiCache extends ApiEntry { String getApiDescription() { StringBuilder builder = new StringBuilder(); builder.append("{"); super.createDescription(builder); builder.append("}"); return builder.toString(); } private  JsApiCache(); }
JsApiCache extends ApiEntry { String getApiDescription() { StringBuilder builder = new StringBuilder(); builder.append("{"); super.createDescription(builder); builder.append("}"); return builder.toString(); } private  JsApiCache();  }
JsApiCache extends ApiEntry { String getApiDescription() { StringBuilder builder = new StringBuilder(); builder.append("{"); super.createDescription(builder); builder.append("}"); return builder.toString(); } private  JsApiCache();   }