@Test void createsArrayDescriptionForEmptyArray() { ObjectDescription.Builder builder = new ObjectDescription.Builder(); FooArray array = new FooArray(List.of()); ObjectDescription.ArrayDescriptionBuilder arrayBuilder = builder.setArray(() -> "cache-key-1", array, Foo.class); assertThat(arrayBuilder.build().describe()).isEqualTo( "{\"--type\":\"array\",\"--id\":\"cache-key-1\"," + "\"--item-type\":\"net.davidtanzer.metalshell.jsapi.ObjectDescriptionTest$Foo\"," + "\"items\":[]}" ); }
String describe() { return ""; }
ObjectDescription { String describe() { return ""; } }
ObjectDescription { String describe() { return ""; } private  ObjectDescription(); }
ObjectDescription { String describe() { return ""; } private  ObjectDescription();  }
ObjectDescription { String describe() { return ""; } private  ObjectDescription();   }