Revision 6124
Added by Chris Jones almost 13 years ago
CNCoreTest.java | ||
---|---|---|
30 | 30 |
import junit.framework.Test; |
31 | 31 |
import junit.framework.TestSuite; |
32 | 32 |
|
33 |
import org.dataone.client.ObjectFormatCache; |
|
33 | 34 |
import org.dataone.service.types.Checksum; |
34 | 35 |
import org.dataone.service.types.ChecksumAlgorithm; |
35 | 36 |
import org.dataone.service.types.Identifier; |
... | ... | |
125 | 126 |
SystemMetadata sm = new SystemMetadata(); |
126 | 127 |
//set the id |
127 | 128 |
sm.setIdentifier(id); |
128 |
sm.setObjectFormat(ObjectFormat.OCTET_STREAM);
|
|
129 |
sm.setObjectFormat(ObjectFormatCache.getFormat("application/octet-stream"));
|
|
129 | 130 |
//create the checksum |
130 | 131 |
String checksumS = "test"; |
131 | 132 |
ChecksumAlgorithm ca = ChecksumAlgorithm.convert("MD5"); |
Also available in: Unified diff
Merged in the D1_0_6_2_BRANCH changes that include the transition from ObjectFormat calls to ObjectFormatCache calls.