@Test void testConvert() { ClouderaManagerRepositoryV4Request request = new ClouderaManagerRepositoryV4Request(); ClouderaManagerRepo repo = ClouderaManagerRepositoryV4RequestToClouderaManagerRepoConverter.convert(request); assertAll( () -> assertEquals(request.getBaseUrl(), repo.getBaseUrl()), () -> assertEquals(request.getGpgKeyUrl(), repo.getGpgKeyUrl()), () -> assertEquals(request.getVersion(), repo.getVersion()) ); }
public static ClouderaManagerRepo convert(ClouderaManagerRepositoryV4Request request) { return new ClouderaManagerRepo() .withBaseUrl(request.getBaseUrl()) .withGpgKeyUrl(request.getGpgKeyUrl()) .withVersion(request.getVersion()); }
ClouderaManagerRepositoryV4RequestToClouderaManagerRepoConverter { public static ClouderaManagerRepo convert(ClouderaManagerRepositoryV4Request request) { return new ClouderaManagerRepo() .withBaseUrl(request.getBaseUrl()) .withGpgKeyUrl(request.getGpgKeyUrl()) .withVersion(request.getVersion()); } }
ClouderaManagerRepositoryV4RequestToClouderaManagerRepoConverter { public static ClouderaManagerRepo convert(ClouderaManagerRepositoryV4Request request) { return new ClouderaManagerRepo() .withBaseUrl(request.getBaseUrl()) .withGpgKeyUrl(request.getGpgKeyUrl()) .withVersion(request.getVersion()); } private  ClouderaManagerRepositoryV4RequestToClouderaManagerRepoConverter(); }
ClouderaManagerRepositoryV4RequestToClouderaManagerRepoConverter { public static ClouderaManagerRepo convert(ClouderaManagerRepositoryV4Request request) { return new ClouderaManagerRepo() .withBaseUrl(request.getBaseUrl()) .withGpgKeyUrl(request.getGpgKeyUrl()) .withVersion(request.getVersion()); } private  ClouderaManagerRepositoryV4RequestToClouderaManagerRepoConverter(); static ClouderaManagerRepo convert(ClouderaManagerRepositoryV4Request request); }
ClouderaManagerRepositoryV4RequestToClouderaManagerRepoConverter { public static ClouderaManagerRepo convert(ClouderaManagerRepositoryV4Request request) { return new ClouderaManagerRepo() .withBaseUrl(request.getBaseUrl()) .withGpgKeyUrl(request.getGpgKeyUrl()) .withVersion(request.getVersion()); } private  ClouderaManagerRepositoryV4RequestToClouderaManagerRepoConverter(); static ClouderaManagerRepo convert(ClouderaManagerRepositoryV4Request request);  }