use of org.apache.hadoop.yarn.api.ClientSCMProtocol in project hadoop by apache.
the class TestSharedCacheClientImpl method setup.
@Before
public void setup() {
cProtocol = mock(ClientSCMProtocol.class);
client = new SharedCacheClientImpl() {
@Override
protected ClientSCMProtocol createClientProxy() {
return cProtocol;
}
@Override
protected void stopClientProxy() {
// do nothing because it is mocked
}
};
client.init(new Configuration());
client.start();
}
Aggregations