@Test(expected = CoprocessorException.class) public void testStart() throws IOException { CoprocessorEnvironment env = PowerMockito.mock(RegionServerCoprocessorEnvironment.class); CubeVisitService service = new CubeVisitService(); service.start(env); }
@Override public void start(CoprocessorEnvironment env) throws IOException { if (env instanceof RegionCoprocessorEnvironment) { this.env = (RegionCoprocessorEnvironment) env; } else { throw new CoprocessorException("Must be loaded on a table region!"); } }
CubeVisitService extends CubeVisitProtos.CubeVisitService implements Coprocessor, CoprocessorService { @Override public void start(CoprocessorEnvironment env) throws IOException { if (env instanceof RegionCoprocessorEnvironment) { this.env = (RegionCoprocessorEnvironment) env; } else { throw new CoprocessorException("Must be loaded on a table region!"); } } }
CubeVisitService extends CubeVisitProtos.CubeVisitService implements Coprocessor, CoprocessorService { @Override public void start(CoprocessorEnvironment env) throws IOException { if (env instanceof RegionCoprocessorEnvironment) { this.env = (RegionCoprocessorEnvironment) env; } else { throw new CoprocessorException("Must be loaded on a table region!"); } }  }
CubeVisitService extends CubeVisitProtos.CubeVisitService implements Coprocessor, CoprocessorService { @Override public void start(CoprocessorEnvironment env) throws IOException { if (env instanceof RegionCoprocessorEnvironment) { this.env = (RegionCoprocessorEnvironment) env; } else { throw new CoprocessorException("Must be loaded on a table region!"); } }  @SuppressWarnings("checkstyle:methodlength") @Override void visitCube(final RpcController controller, final CubeVisitProtos.CubeVisitRequest request,
            RpcCallback<CubeVisitProtos.CubeVisitResponse> done); @Override void start(CoprocessorEnvironment env); @Override void stop(CoprocessorEnvironment env); @Override Service getService(); }
CubeVisitService extends CubeVisitProtos.CubeVisitService implements Coprocessor, CoprocessorService { @Override public void start(CoprocessorEnvironment env) throws IOException { if (env instanceof RegionCoprocessorEnvironment) { this.env = (RegionCoprocessorEnvironment) env; } else { throw new CoprocessorException("Must be loaded on a table region!"); } }  @SuppressWarnings("checkstyle:methodlength") @Override void visitCube(final RpcController controller, final CubeVisitProtos.CubeVisitRequest request,
            RpcCallback<CubeVisitProtos.CubeVisitResponse> done); @Override void start(CoprocessorEnvironment env); @Override void stop(CoprocessorEnvironment env); @Override Service getService();  }