@Test public void testConvert() { Map<String, String> applicationTags = Map.of("aTagK1", "aTagV1", "aTagK2", "aTagV2"); Map<String, String> defaultTags = Map.of("dTagK1", "dTagV1", "dTagK2", "dTagV2"); Map<String, String> userDefinedTags = Map.of("uTagK1", "uTagV1", "uTagK2", "uTagV2"); StackTags source = new StackTags(userDefinedTags, applicationTags, defaultTags); TagsV4Response result = underTest.convert(source); assertNotNull(result); assertEquals(applicationTags, result.getApplication()); assertEquals(defaultTags, result.getDefaults()); assertEquals(userDefinedTags, result.getUserDefined()); }
@Override public TagsV4Response convert(StackTags source) { TagsV4Response response = new TagsV4Response(); response.setApplication(source.getApplicationTags()); response.setDefaults(source.getDefaultTags()); response.setUserDefined(source.getUserDefinedTags()); return response; }
StackTagsToTagsV4ResponseConverter extends AbstractConversionServiceAwareConverter<StackTags, TagsV4Response> { @Override public TagsV4Response convert(StackTags source) { TagsV4Response response = new TagsV4Response(); response.setApplication(source.getApplicationTags()); response.setDefaults(source.getDefaultTags()); response.setUserDefined(source.getUserDefinedTags()); return response; } }
StackTagsToTagsV4ResponseConverter extends AbstractConversionServiceAwareConverter<StackTags, TagsV4Response> { @Override public TagsV4Response convert(StackTags source) { TagsV4Response response = new TagsV4Response(); response.setApplication(source.getApplicationTags()); response.setDefaults(source.getDefaultTags()); response.setUserDefined(source.getUserDefinedTags()); return response; }  }
StackTagsToTagsV4ResponseConverter extends AbstractConversionServiceAwareConverter<StackTags, TagsV4Response> { @Override public TagsV4Response convert(StackTags source) { TagsV4Response response = new TagsV4Response(); response.setApplication(source.getApplicationTags()); response.setDefaults(source.getDefaultTags()); response.setUserDefined(source.getUserDefinedTags()); return response; }  @Override TagsV4Response convert(StackTags source); }
StackTagsToTagsV4ResponseConverter extends AbstractConversionServiceAwareConverter<StackTags, TagsV4Response> { @Override public TagsV4Response convert(StackTags source) { TagsV4Response response = new TagsV4Response(); response.setApplication(source.getApplicationTags()); response.setDefaults(source.getDefaultTags()); response.setUserDefined(source.getUserDefinedTags()); return response; }  @Override TagsV4Response convert(StackTags source);  }