@Test void testToPackageReference() { String id = "id0"; EditorPackageIdentifier packageIdentifier = EditorPackageIdentifier.create(id, "label"); Package package_ = packageMapper.toPackageReference(packageIdentifier); assertEquals(id, package_.getIdValue()); }
Package toPackageReference(EditorPackageIdentifier editorPackageIdentifier) { if (editorPackageIdentifier == null) { return null; } return new Package( new LazyEntity( packageFactory.getEntityType(), dataService, editorPackageIdentifier.getId())); }
PackageMapper { Package toPackageReference(EditorPackageIdentifier editorPackageIdentifier) { if (editorPackageIdentifier == null) { return null; } return new Package( new LazyEntity( packageFactory.getEntityType(), dataService, editorPackageIdentifier.getId())); } }
PackageMapper { Package toPackageReference(EditorPackageIdentifier editorPackageIdentifier) { if (editorPackageIdentifier == null) { return null; } return new Package( new LazyEntity( packageFactory.getEntityType(), dataService, editorPackageIdentifier.getId())); } PackageMapper(PackageFactory packageFactory, DataService dataService); }
PackageMapper { Package toPackageReference(EditorPackageIdentifier editorPackageIdentifier) { if (editorPackageIdentifier == null) { return null; } return new Package( new LazyEntity( packageFactory.getEntityType(), dataService, editorPackageIdentifier.getId())); } PackageMapper(PackageFactory packageFactory, DataService dataService); EditorPackageIdentifier toEditorPackage(Package aPackage); }
PackageMapper { Package toPackageReference(EditorPackageIdentifier editorPackageIdentifier) { if (editorPackageIdentifier == null) { return null; } return new Package( new LazyEntity( packageFactory.getEntityType(), dataService, editorPackageIdentifier.getId())); } PackageMapper(PackageFactory packageFactory, DataService dataService); EditorPackageIdentifier toEditorPackage(Package aPackage);  }