Project

General

Profile

« Previous | Next » 

Revision 10266

Added by Jing Tao over 7 years ago

Add the replication source node into the node locator.

View differences:

test/edu/ucsb/nceas/metacat/dataone/D1NodeServiceTest.java
107 107
				return node;
108 108
			}
109 109
		};
110
		//add the replicate node into the locator
111
		NodeReference nodeRef = new NodeReference();
112
        nodeRef.setValue(MockReplicationMNode.NODE_ID);
113
		MockReplicationMNode mNode = new MockReplicationMNode("http://replication.node.com");
114
		nodeLocator.putNode(nodeRef, mNode);
110 115
		D1Client.setNodeLocator(nodeLocator );
111 116
    	
112 117
    }

Also available in: Unified diff