EdColeman commented on code in PR #2569:
URL: https://github.com/apache/accumulo/pull/2569#discussion_r858737894
##########
server/base/src/test/java/org/apache/accumulo/server/MockServerContext.java:
##########
@@ -54,4 +57,17 @@ public static ServerContext getWithZK(InstanceId instanceID,
String zk, int zkTi
return sc;
}
+ public static ServerContext getMockContextWithPropStore(final InstanceId
instanceID,
+ ZooReaderWriter zrw, PropStore propStore) {
+ try {
+ ServerContext sc = createMock(ServerContext.class);
+ expect(sc.getInstanceID()).andReturn(instanceID).anyTimes();
+ expect(sc.getZooReaderWriter()).andReturn(zrw).anyTimes();
+ expect(sc.getZooKeeperRoot()).andReturn("/accumulo/" +
instanceID).anyTimes();
+ expect(sc.getPropStore()).andReturn(propStore).anyTimes();
+ return sc;
+ } catch (NullPointerException ex) {
+ throw new IllegalStateException("Failed to create mock test context",
ex);
+ }
Review Comment:
fixed in 79f3e74ea6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]