Revision 6349
Added by ben leinfelder about 13 years ago
MockCNode.java | ||
---|---|---|
63 | 63 |
// always return true |
64 | 64 |
return true; |
65 | 65 |
} |
66 |
|
|
67 |
/** |
|
68 |
* we only want to test against ourselves |
|
69 |
*/ |
|
70 |
@Override |
|
71 |
public String lookupNodeBaseUrl(String nodeId) throws ServiceFailure, NotImplemented { |
|
72 |
|
|
73 |
try { |
|
74 |
return MNodeService.getInstance().getCapabilities().getBaseURL(); |
|
75 |
} catch (Exception e) { |
|
76 |
// TODO Auto-generated catch block |
|
77 |
e.printStackTrace(); |
|
78 |
} |
|
79 |
return null; |
|
80 |
} |
|
66 | 81 |
} |
Also available in: Unified diff
include Mock version of looking up the base url for our own node - for testReplicate().
still expecting a failure during MN.replicate() since we are trying to add the replica to the same MN from which it came.