use of org.molgenis.metadata.manager.model.EditorPackageIdentifier in project molgenis by molgenis.
the class PackageMapperTest method testToPackageReference.
@Test
public void testToPackageReference() {
String id = "id0";
EditorPackageIdentifier packageIdentifier = EditorPackageIdentifier.create(id, "label");
Package package_ = packageMapper.toPackageReference(packageIdentifier);
assertEquals(package_.getIdValue(), id);
}
use of org.molgenis.metadata.manager.model.EditorPackageIdentifier in project molgenis by molgenis.
the class PackageMapperTest method testToEditorPackage.
@Test
public 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(editorPackage, EditorPackageIdentifier.create(id, label));
}
Aggregations