Search in sources :

Example 1 with ClientSCMProtocol

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();
}
Also used : Configuration(org.apache.hadoop.conf.Configuration) ClientSCMProtocol(org.apache.hadoop.yarn.api.ClientSCMProtocol) Before(org.junit.Before)

Aggregations

Configuration (org.apache.hadoop.conf.Configuration)1 ClientSCMProtocol (org.apache.hadoop.yarn.api.ClientSCMProtocol)1 Before (org.junit.Before)1