Project

General

Profile

« Previous | Next » 

Revision 6132

Added by Chris Jones over 13 years ago

When calling SystemMetadata.getObjectFormat(), return the string value of the ObjectFormatIdentifier rather than ObjectFormat.toString() (which no longer returns the fmtid string).

View differences:

test/edu/ucsb/nceas/metacat/dataone/CrudServiceTest.java
194 194
	        DescribeResponse dr = cs.describe(token, id);
195 195
	        
196 196
	        assertTrue(dr.getDataONE_Checksum().getValue().equals(sm.getChecksum().getValue()));
197
	        assertTrue(dr.getDataONE_ObjectFormat().toString().equals(sm.getObjectFormat().toString()));
197
	        assertTrue(dr.getDataONE_ObjectFormat().toString().equals(sm.getObjectFormat().getFmtid().getValue()));
198 198
	        assertTrue(dr.getLast_Modified().getTime() == sm.getDateSysMetadataModified().getTime());
199 199
	        assertTrue(dr.getContent_Length() == sm.getSize());
200 200
	    }
......
764 764
	
765 765
	public String getTestDoc()
766 766
	{
767
	    return getTestDoc(null);
767
	    return getTestDoc("eml://ecoinformatics.org/eml-2.1.0");
768 768
	}
769 769
	
770 770
	/**

Also available in: Unified diff