Revision 9310
Added by Jing Tao over 9 years ago
test/edu/ucsb/nceas/metacat/dataone/v1/D1NodeV1ServiceTest.java | ||
---|---|---|
53 | 53 |
import org.dataone.service.types.v1.Subject; |
54 | 54 |
import org.dataone.service.types.v1.SystemMetadata; |
55 | 55 |
import org.dataone.service.types.v1.util.ChecksumUtil; |
56 |
import org.dataone.service.types.v2.TypeFactory; |
|
56 | 57 |
import org.dataone.service.util.Constants; |
57 |
import org.dataone.service.util.TypeMarshaller; |
|
58 | 58 |
|
59 |
|
|
59 | 60 |
import edu.ucsb.nceas.MCTestCase; |
60 | 61 |
import edu.ucsb.nceas.metacat.client.Metacat; |
61 | 62 |
import edu.ucsb.nceas.metacat.client.MetacatFactory; |
... | ... | |
96 | 97 |
throws Exception |
97 | 98 |
{ |
98 | 99 |
org.dataone.service.types.v2.SystemMetadata v2Sysmeta = super.createSystemMetadata(id, owner, object); |
99 |
SystemMetadata sm = TypeMarshaller.convertTypeFromType(v2Sysmeta, SystemMetadata.class);
|
|
100 |
SystemMetadata sm = TypeFactory.convertTypeFromType(v2Sysmeta, SystemMetadata.class);
|
|
100 | 101 |
return sm; |
101 | 102 |
} |
102 | 103 |
|
Also available in: Unified diff
Use TypeFactory to convert types.