ArtifactDefinitions implements ToNode, ToSmithyBuilder<ArtifactDefinitions> { public static Builder builder() { return new Builder(); } private  ArtifactDefinitions(Builder builder); static ArtifactDefinitions fromNode(Node value); static Builder builder(); @Override ObjectNode toNode(); Map<String, String> getTags(); Map<String, String> getTypes(); @Override Builder toBuilder(); static final String TYPE_TEXT; static final String TAGS_TEXT; }
@Test void assertBuildThrowsWithoutRequiredTypesField() { Assertions.assertThrows(IllegalStateException.class, () -> { ArtifactDefinitions.builder() .addTag("tag1", "tag1val") .addTag("tag2", "tag2val") .build(); }); }
@Test void assertBuildThrowsWithoutRequiredTagsField() { Assertions.assertThrows(IllegalStateException.class, () -> { ArtifactDefinitions.builder() .addType("t1", "t1val") .addType("t2", "t2val") .build(); }); }