Project

General

Profile

« Previous | Next » 

Revision 9365

Added by Jing Tao about 9 years ago

Use the create method to replace registerSystemMetadata method.

View differences:

test/edu/ucsb/nceas/metacat/dataone/v1/CNodeV1ServiceTest.java
130 130
			InputStream object = new ByteArrayInputStream("test".getBytes("UTF-8"));
131 131
			SystemMetadata sysmeta = createV1SystemMetadata(guid, session.getSubject(), object);
132 132
			Session cnSession = getCNSession();
133
			Identifier retGuid = CNodeService.getInstance(request).registerSystemMetadata(cnSession, guid, sysmeta);
133
			Identifier retGuid = CNodeService.getInstance(request).create(cnSession, guid, object, sysmeta);
134 134
			assertEquals(guid.getValue(), retGuid.getValue());
135 135
			// get it
136 136
			SystemMetadata retSysmeta = CNodeService.getInstance(request).getSystemMetadata(session, guid);

Also available in: Unified diff