Project

General

Profile

« Previous | Next » 

Revision 6328

allow null objects (use default checksum)

View differences:

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