@Test void testCreatePackageValue() { PackageValue packageValue = PackageValue.builder() .setName("name") .setLabel("label") .setDescription("description") .build(); Package actual = factory.create(packageValue); assertEquals("name", actual.getId()); assertEquals("label", actual.getLabel()); assertEquals("description", actual.getDescription()); }
public Package create(String id, String description) { Package pack = create(id); pack.setLabel(id); pack.setDescription(description); return pack; }
PackageFactory extends AbstractSystemEntityFactory<Package, PackageMetadata, String> { public Package create(String id, String description) { Package pack = create(id); pack.setLabel(id); pack.setDescription(description); return pack; } }
PackageFactory extends AbstractSystemEntityFactory<Package, PackageMetadata, String> { public Package create(String id, String description) { Package pack = create(id); pack.setLabel(id); pack.setDescription(description); return pack; } PackageFactory(PackageMetadata packageMetadata, EntityPopulator entityPopulator); }
PackageFactory extends AbstractSystemEntityFactory<Package, PackageMetadata, String> { public Package create(String id, String description) { Package pack = create(id); pack.setLabel(id); pack.setDescription(description); return pack; } PackageFactory(PackageMetadata packageMetadata, EntityPopulator entityPopulator); Package create(String id, String description); @Override Package create(String id); Package create(String id, String description, Package parentPackage); Package create(PackageValue packageValue); }
PackageFactory extends AbstractSystemEntityFactory<Package, PackageMetadata, String> { public Package create(String id, String description) { Package pack = create(id); pack.setLabel(id); pack.setDescription(description); return pack; } PackageFactory(PackageMetadata packageMetadata, EntityPopulator entityPopulator); Package create(String id, String description); @Override Package create(String id); Package create(String id, String description, Package parentPackage); Package create(PackageValue packageValue);  }