Revision 6879
Added by Chris Jones almost 13 years ago
test/edu/ucsb/nceas/metacat/dataone/CNodeServiceTest.java | ||
---|---|---|
28 | 28 |
import java.io.ByteArrayInputStream; |
29 | 29 |
import java.io.InputStream; |
30 | 30 |
import java.text.SimpleDateFormat; |
31 |
import java.util.Calendar; |
|
31 | 32 |
import java.util.Date; |
32 | 33 |
import java.util.List; |
33 | 34 |
|
... | ... | |
471 | 472 |
replicaMemberNode.setValue("testNode"); |
472 | 473 |
replica.setReplicationStatus(ReplicationStatus.REQUESTED); |
473 | 474 |
replica.setReplicaMemberNode(replicaMemberNode); |
474 |
replica.setReplicaVerified(new Date());
|
|
475 |
replica.setReplicaVerified(Calendar.getInstance().getTime());
|
|
475 | 476 |
sysmeta.addReplica(replica ); |
476 | 477 |
// save it |
477 | 478 |
Identifier retGuid = CNodeService.getInstance(request).registerSystemMetadata(session, guid, sysmeta); |
Also available in: Unified diff
Use a Date with resolution to milliseconds.