@Test void testToEditorPackage() { String id = "id0"; String label = "label0"; Package package_ = mock(Package.class); when(package_.getId()).thenReturn(id); when(package_.getLabel()).thenReturn(label); EditorPackageIdentifier editorPackage = packageMapper.toEditorPackage(package_); assertEquals(create(id, label), editorPackage); }
public EditorPackageIdentifier toEditorPackage(Package aPackage) { if (aPackage == null) { return null; } return EditorPackageIdentifier.create(aPackage.getId(), aPackage.getLabel()); }
PackageMapper { public EditorPackageIdentifier toEditorPackage(Package aPackage) { if (aPackage == null) { return null; } return EditorPackageIdentifier.create(aPackage.getId(), aPackage.getLabel()); } }
PackageMapper { public EditorPackageIdentifier toEditorPackage(Package aPackage) { if (aPackage == null) { return null; } return EditorPackageIdentifier.create(aPackage.getId(), aPackage.getLabel()); } PackageMapper(PackageFactory packageFactory, DataService dataService); }
PackageMapper { public EditorPackageIdentifier toEditorPackage(Package aPackage) { if (aPackage == null) { return null; } return EditorPackageIdentifier.create(aPackage.getId(), aPackage.getLabel()); } PackageMapper(PackageFactory packageFactory, DataService dataService); EditorPackageIdentifier toEditorPackage(Package aPackage); }
PackageMapper { public EditorPackageIdentifier toEditorPackage(Package aPackage) { if (aPackage == null) { return null; } return EditorPackageIdentifier.create(aPackage.getId(), aPackage.getLabel()); } PackageMapper(PackageFactory packageFactory, DataService dataService); EditorPackageIdentifier toEditorPackage(Package aPackage);  }