Revision 6328
Added by ben leinfelder over 13 years ago
test/edu/ucsb/nceas/metacat/dataone/D1NodeServiceTest.java | ||
---|---|---|
150 | 150 |
sm.setIdentifier(id); |
151 | 151 |
sm.setObjectFormat(ObjectFormatCache.getInstance().getFormat("application/octet-stream")); |
152 | 152 |
// create the checksum |
153 |
String checksumS = checksum(object); |
|
153 |
String checksumS = "test"; |
|
154 |
if (object != null) { |
|
155 |
checksumS = checksum(object); |
|
156 |
} |
|
154 | 157 |
ChecksumAlgorithm ca = ChecksumAlgorithm.convert("MD5"); |
155 | 158 |
Checksum checksum = new Checksum(); |
156 | 159 |
checksum.setValue(checksumS); |
Also available in: Unified diff
allow null objects (use default checksum)