src_fm_fc_ms_ff stringlengths 43 86.8k | target stringlengths 20 276k |
|---|---|
BlueOceanApi { public PipelineRunNode getPipelineRunNode(String organization, String pipeline, String run, String node) throws ApiException { ApiResponse<PipelineRunNode> resp = getPipelineRunNodeWithHttpInfo(organization, pipeline, run, node); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient)... | @Test public void getPipelineRunNodeTest() throws ApiException { String organization = null; String pipeline = null; String run = null; String node = null; PipelineRunNode response = api.getPipelineRunNode(organization, pipeline, run, node); } |
BlueOceanApi { public PipelineStepImpl getPipelineRunNodeStep(String organization, String pipeline, String run, String node, String step) throws ApiException { ApiResponse<PipelineStepImpl> resp = getPipelineRunNodeStepWithHttpInfo(organization, pipeline, run, node, step); return resp.getData(); } BlueOceanApi(); Blue... | @Test public void getPipelineRunNodeStepTest() throws ApiException { String organization = null; String pipeline = null; String run = null; String node = null; String step = null; PipelineStepImpl response = api.getPipelineRunNodeStep(organization, pipeline, run, node, step); } |
BlueOceanApi { public String getPipelineRunNodeStepLog(String organization, String pipeline, String run, String node, String step) throws ApiException { ApiResponse<String> resp = getPipelineRunNodeStepLogWithHttpInfo(organization, pipeline, run, node, step); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiCl... | @Test public void getPipelineRunNodeStepLogTest() throws ApiException { String organization = null; String pipeline = null; String run = null; String node = null; String step = null; String response = api.getPipelineRunNodeStepLog(organization, pipeline, run, node, step); } |
BlueOceanApi { public User getAuthenticatedUser(String organization) throws ApiException { ApiResponse<User> resp = getAuthenticatedUserWithHttpInfo(organization); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.... | @Test public void getAuthenticatedUserTest() throws ApiException { String organization = null; User response = api.getAuthenticatedUser(organization); } |
BlueOceanApi { public PipelineRunNodeSteps getPipelineRunNodeSteps(String organization, String pipeline, String run, String node) throws ApiException { ApiResponse<PipelineRunNodeSteps> resp = getPipelineRunNodeStepsWithHttpInfo(organization, pipeline, run, node); return resp.getData(); } BlueOceanApi(); BlueOceanApi(... | @Test public void getPipelineRunNodeStepsTest() throws ApiException { String organization = null; String pipeline = null; String run = null; String node = null; PipelineRunNodeSteps response = api.getPipelineRunNodeSteps(organization, pipeline, run, node); } |
BlueOceanApi { public PipelineRunNodes getPipelineRunNodes(String organization, String pipeline, String run) throws ApiException { ApiResponse<PipelineRunNodes> resp = getPipelineRunNodesWithHttpInfo(organization, pipeline, run); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient get... | @Test public void getPipelineRunNodesTest() throws ApiException { String organization = null; String pipeline = null; String run = null; PipelineRunNodes response = api.getPipelineRunNodes(organization, pipeline, run); } |
BlueOceanApi { public PipelineRuns getPipelineRuns(String organization, String pipeline) throws ApiException { ApiResponse<PipelineRuns> resp = getPipelineRunsWithHttpInfo(organization, pipeline); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(Ap... | @Test public void getPipelineRunsTest() throws ApiException { String organization = null; String pipeline = null; PipelineRuns response = api.getPipelineRuns(organization, pipeline); } |
BlueOceanApi { public Pipelines getPipelines(String organization) throws ApiException { ApiResponse<Pipelines> resp = getPipelinesWithHttpInfo(organization); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp... | @Test public void getPipelinesTest() throws ApiException { String organization = null; Pipelines response = api.getPipelines(organization); } |
BlueOceanApi { public GithubScm getSCM(String organization, String scm) throws ApiException { ApiResponse<GithubScm> resp = getSCMWithHttpInfo(organization, scm); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.o... | @Test public void getSCMTest() throws ApiException { String organization = null; String scm = null; GithubScm response = api.getSCM(organization, scm); } |
BlueOceanApi { public ScmOrganisations getSCMOrganisationRepositories(String organization, String scm, String scmOrganisation, String credentialId, Integer pageSize, Integer pageNumber) throws ApiException { ApiResponse<ScmOrganisations> resp = getSCMOrganisationRepositoriesWithHttpInfo(organization, scm, scmOrganisati... | @Test public void getSCMOrganisationRepositoriesTest() throws ApiException { String organization = null; String scm = null; String scmOrganisation = null; String credentialId = null; Integer pageSize = null; Integer pageNumber = null; ScmOrganisations response = api.getSCMOrganisationRepositories(organization, scm, scm... |
BlueOceanApi { public ScmOrganisations getSCMOrganisationRepository(String organization, String scm, String scmOrganisation, String repository, String credentialId) throws ApiException { ApiResponse<ScmOrganisations> resp = getSCMOrganisationRepositoryWithHttpInfo(organization, scm, scmOrganisation, repository, credent... | @Test public void getSCMOrganisationRepositoryTest() throws ApiException { String organization = null; String scm = null; String scmOrganisation = null; String repository = null; String credentialId = null; ScmOrganisations response = api.getSCMOrganisationRepository(organization, scm, scmOrganisation, repository, cred... |
BlueOceanApi { public ScmOrganisations getSCMOrganisations(String organization, String scm, String credentialId) throws ApiException { ApiResponse<ScmOrganisations> resp = getSCMOrganisationsWithHttpInfo(organization, scm, credentialId); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiCl... | @Test public void getSCMOrganisationsTest() throws ApiException { String organization = null; String scm = null; String credentialId = null; ScmOrganisations response = api.getSCMOrganisations(organization, scm, credentialId); } |
BlueOceanApi { public User getUser(String organization, String user) throws ApiException { ApiResponse<User> resp = getUserWithHttpInfo(organization, user); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.... | @Test public void getUserTest() throws ApiException { String organization = null; String user = null; User response = api.getUser(organization, user); } |
BlueOceanApi { public UserFavorites getUserFavorites(String user) throws ApiException { ApiResponse<UserFavorites> resp = getUserFavoritesWithHttpInfo(user); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp... | @Test public void getUserFavoritesTest() throws ApiException { String user = null; UserFavorites response = api.getUserFavorites(user); } |
BlueOceanApi { public String getClasses(String propertyClass) throws ApiException { ApiResponse<String> resp = getClassesWithHttpInfo(propertyClass); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call de... | @Test public void getClassesTest() throws ApiException { String propertyClass = null; String response = api.getClasses(propertyClass); } |
BlueOceanApi { public User getUsers(String organization) throws ApiException { ApiResponse<User> resp = getUsersWithHttpInfo(organization); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call deletePipeli... | @Test public void getUsersTest() throws ApiException { String organization = null; User response = api.getUsers(organization); } |
BlueOceanApi { public QueueItemImpl postPipelineRun(String organization, String pipeline, String run) throws ApiException { ApiResponse<QueueItemImpl> resp = postPipelineRunWithHttpInfo(organization, pipeline, run); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); v... | @Test public void postPipelineRunTest() throws ApiException { String organization = null; String pipeline = null; String run = null; QueueItemImpl response = api.postPipelineRun(organization, pipeline, run); } |
BlueOceanApi { public QueueItemImpl postPipelineRuns(String organization, String pipeline) throws ApiException { ApiResponse<QueueItemImpl> resp = postPipelineRunsWithHttpInfo(organization, pipeline); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClien... | @Test public void postPipelineRunsTest() throws ApiException { String organization = null; String pipeline = null; QueueItemImpl response = api.postPipelineRuns(organization, pipeline); } |
BlueOceanApi { public FavoriteImpl putPipelineFavorite(String organization, String pipeline, Body body) throws ApiException { ApiResponse<FavoriteImpl> resp = putPipelineFavoriteWithHttpInfo(organization, pipeline, body); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClien... | @Test public void putPipelineFavoriteTest() throws ApiException { String organization = null; String pipeline = null; Body body = null; FavoriteImpl response = api.putPipelineFavorite(organization, pipeline, body); } |
BlueOceanApi { public PipelineRun putPipelineRun(String organization, String pipeline, String run, String blocking, Integer timeOutInSecs) throws ApiException { ApiResponse<PipelineRun> resp = putPipelineRunWithHttpInfo(organization, pipeline, run, blocking, timeOutInSecs); return resp.getData(); } BlueOceanApi(); Blu... | @Test public void putPipelineRunTest() throws ApiException { String organization = null; String pipeline = null; String run = null; String blocking = null; Integer timeOutInSecs = null; PipelineRun response = api.putPipelineRun(organization, pipeline, run, blocking, timeOutInSecs); } |
BlueOceanApi { public String search(String q) throws ApiException { ApiResponse<String> resp = searchWithHttpInfo(q); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call deletePipelineQueueItemCall(String... | @Test public void searchTest() throws ApiException { String q = null; String response = api.search(q); } |
BlueOceanApi { public String searchClasses(String q) throws ApiException { ApiResponse<String> resp = searchClassesWithHttpInfo(q); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call deletePipelineQueueI... | @Test public void searchClassesTest() throws ApiException { String q = null; String response = api.searchClasses(q); } |
BaseRemoteAccessApi { public DefaultCrumbIssuer getCrumb() throws ApiException { ApiResponse<DefaultCrumbIssuer> resp = getCrumbWithHttpInfo(); return resp.getData(); } BaseRemoteAccessApi(); BaseRemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp... | @Test public void getCrumbTest() throws ApiException { DefaultCrumbIssuer response = api.getCrumb(); } |
RemoteAccessApi { public ComputerSet getComputer(Integer depth) throws ApiException { ApiResponse<ComputerSet> resp = getComputerWithHttpInfo(depth); return resp.getData(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.C... | @Test public void getComputerTest() throws ApiException { Integer depth = null; ComputerSet response = api.getComputer(depth); } |
RemoteAccessApi { public Hudson getJenkins() throws ApiException { ApiResponse<Hudson> resp = getJenkinsWithHttpInfo(); return resp.getData(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getComputerCall(Integer de... | @Test public void getJenkinsTest() throws ApiException { Hudson response = api.getJenkins(); } |
BlueOceanApi { public String getJsonWebKey(Integer key) throws ApiException { ApiResponse<String> resp = getJsonWebKeyWithHttpInfo(key); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call deletePipelineQ... | @Test public void getJsonWebKeyTest() throws ApiException { Integer key = null; String response = api.getJsonWebKey(key); } |
RemoteAccessApi { public FreeStyleProject getJob(String name) throws ApiException { ApiResponse<FreeStyleProject> resp = getJobWithHttpInfo(name); return resp.getData(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call... | @Test public void getJobTest() throws ApiException { String name = null; FreeStyleProject response = api.getJob(name); } |
RemoteAccessApi { public String getJobConfig(String name) throws ApiException { ApiResponse<String> resp = getJobConfigWithHttpInfo(name); return resp.getData(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getComp... | @Test public void getJobConfigTest() throws ApiException { String name = null; String response = api.getJobConfig(name); } |
RemoteAccessApi { public FreeStyleBuild getJobLastBuild(String name) throws ApiException { ApiResponse<FreeStyleBuild> resp = getJobLastBuildWithHttpInfo(name); return resp.getData(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.square... | @Test public void getJobLastBuildTest() throws ApiException { String name = null; FreeStyleBuild response = api.getJobLastBuild(name); } |
RemoteAccessApi { public void getJobProgressiveText(String name, String number, String start) throws ApiException { getJobProgressiveTextWithHttpInfo(name, number, start); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Ca... | @Test public void getJobProgressiveTextTest() throws ApiException { String name = null; String number = null; String start = null; api.getJobProgressiveText(name, number, start); } |
RemoteAccessApi { public Queue getQueue() throws ApiException { ApiResponse<Queue> resp = getQueueWithHttpInfo(); return resp.getData(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getComputerCall(Integer depth, f... | @Test public void getQueueTest() throws ApiException { Queue response = api.getQueue(); } |
RemoteAccessApi { public Queue getQueueItem(String number) throws ApiException { ApiResponse<Queue> resp = getQueueItemWithHttpInfo(number); return resp.getData(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getCo... | @Test public void getQueueItemTest() throws ApiException { String number = null; Queue response = api.getQueueItem(number); } |
RemoteAccessApi { public ListView getView(String name) throws ApiException { ApiResponse<ListView> resp = getViewWithHttpInfo(name); return resp.getData(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getComputerCa... | @Test public void getViewTest() throws ApiException { String name = null; ListView response = api.getView(name); } |
RemoteAccessApi { public String getViewConfig(String name) throws ApiException { ApiResponse<String> resp = getViewConfigWithHttpInfo(name); return resp.getData(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getCo... | @Test public void getViewConfigTest() throws ApiException { String name = null; String response = api.getViewConfig(name); } |
RemoteAccessApi { public void headJenkins() throws ApiException { headJenkinsWithHttpInfo(); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getComputerCall(Integer depth, final ProgressResponseBody.ProgressListener p... | @Test public void headJenkinsTest() throws ApiException { api.headJenkins(); } |
RemoteAccessApi { public void postCreateItem(String name, String from, String mode, String jenkinsCrumb, String contentType, String body) throws ApiException { postCreateItemWithHttpInfo(name, from, mode, jenkinsCrumb, contentType, body); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClien... | @Test public void postCreateItemTest() throws ApiException { String name = null; String from = null; String mode = null; String jenkinsCrumb = null; String contentType = null; String body = null; api.postCreateItem(name, from, mode, jenkinsCrumb, contentType, body); } |
BlueOceanApi { public String getJsonWebToken(Integer expiryTimeInMins, Integer maxExpiryTimeInMins) throws ApiException { ApiResponse<String> resp = getJsonWebTokenWithHttpInfo(expiryTimeInMins, maxExpiryTimeInMins); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); ... | @Test public void getJsonWebTokenTest() throws ApiException { Integer expiryTimeInMins = null; Integer maxExpiryTimeInMins = null; String response = api.getJsonWebToken(expiryTimeInMins, maxExpiryTimeInMins); } |
RemoteAccessApi { public void postCreateView(String name, String jenkinsCrumb, String contentType, String body) throws ApiException { postCreateViewWithHttpInfo(name, jenkinsCrumb, contentType, body); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiCl... | @Test public void postCreateViewTest() throws ApiException { String name = null; String jenkinsCrumb = null; String contentType = null; String body = null; api.postCreateView(name, jenkinsCrumb, contentType, body); } |
RemoteAccessApi { public void postJobBuild(String name, String json, String token, String jenkinsCrumb) throws ApiException { postJobBuildWithHttpInfo(name, json, token, jenkinsCrumb); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squar... | @Test public void postJobBuildTest() throws ApiException { String name = null; String json = null; String token = null; String jenkinsCrumb = null; api.postJobBuild(name, json, token, jenkinsCrumb); } |
RemoteAccessApi { public void postJobConfig(String name, String body, String jenkinsCrumb) throws ApiException { postJobConfigWithHttpInfo(name, body, jenkinsCrumb); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call get... | @Test public void postJobConfigTest() throws ApiException { String name = null; String body = null; String jenkinsCrumb = null; api.postJobConfig(name, body, jenkinsCrumb); } |
RemoteAccessApi { public void postJobDelete(String name, String jenkinsCrumb) throws ApiException { postJobDeleteWithHttpInfo(name, jenkinsCrumb); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getComputerCall(Intege... | @Test public void postJobDeleteTest() throws ApiException { String name = null; String jenkinsCrumb = null; api.postJobDelete(name, jenkinsCrumb); } |
RemoteAccessApi { public void postJobDisable(String name, String jenkinsCrumb) throws ApiException { postJobDisableWithHttpInfo(name, jenkinsCrumb); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getComputerCall(Inte... | @Test public void postJobDisableTest() throws ApiException { String name = null; String jenkinsCrumb = null; api.postJobDisable(name, jenkinsCrumb); } |
RemoteAccessApi { public void postJobEnable(String name, String jenkinsCrumb) throws ApiException { postJobEnableWithHttpInfo(name, jenkinsCrumb); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getComputerCall(Intege... | @Test public void postJobEnableTest() throws ApiException { String name = null; String jenkinsCrumb = null; api.postJobEnable(name, jenkinsCrumb); } |
RemoteAccessApi { public void postJobLastBuildStop(String name, String jenkinsCrumb) throws ApiException { postJobLastBuildStopWithHttpInfo(name, jenkinsCrumb); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call getCompu... | @Test public void postJobLastBuildStopTest() throws ApiException { String name = null; String jenkinsCrumb = null; api.postJobLastBuildStop(name, jenkinsCrumb); } |
RemoteAccessApi { public void postViewConfig(String name, String body, String jenkinsCrumb) throws ApiException { postViewConfigWithHttpInfo(name, body, jenkinsCrumb); } RemoteAccessApi(); RemoteAccessApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call g... | @Test public void postViewConfigTest() throws ApiException { String name = null; String body = null; String jenkinsCrumb = null; api.postViewConfig(name, body, jenkinsCrumb); } |
BlueOceanApi { public Organisation getOrganisation(String organization) throws ApiException { ApiResponse<Organisation> resp = getOrganisationWithHttpInfo(organization); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squ... | @Test public void getOrganisationTest() throws ApiException { String organization = null; Organisation response = api.getOrganisation(organization); } |
BlueOceanApi { public Organisations getOrganisations() throws ApiException { ApiResponse<Organisations> resp = getOrganisationsWithHttpInfo(); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call deletePip... | @Test public void getOrganisationsTest() throws ApiException { Organisations response = api.getOrganisations(); } |
BlueOceanApi { public Pipeline getPipeline(String organization, String pipeline) throws ApiException { ApiResponse<Pipeline> resp = getPipelineWithHttpInfo(organization, pipeline); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClien... | @Test public void getPipelineTest() throws ApiException { String organization = null; String pipeline = null; Pipeline response = api.getPipeline(organization, pipeline); } |
BlueOceanApi { public PipelineActivities getPipelineActivities(String organization, String pipeline) throws ApiException { ApiResponse<PipelineActivities> resp = getPipelineActivitiesWithHttpInfo(organization, pipeline); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient... | @Test public void getPipelineActivitiesTest() throws ApiException { String organization = null; String pipeline = null; PipelineActivities response = api.getPipelineActivities(organization, pipeline); } |
BlueOceanApi { public BranchImpl getPipelineBranch(String organization, String pipeline, String branch) throws ApiException { ApiResponse<BranchImpl> resp = getPipelineBranchWithHttpInfo(organization, pipeline, branch); return resp.getData(); } BlueOceanApi(); BlueOceanApi(ApiClient apiClient); ApiClient getApiClient(... | @Test public void getPipelineBranchTest() throws ApiException { String organization = null; String pipeline = null; String branch = null; BranchImpl response = api.getPipelineBranch(organization, pipeline, branch); } |
XmlModelLoader extends ModelLoader<XmlModel, InputStream> { @Override public XmlModel loadModel(InputStream xmlStream) throws ModelException { if (xmlStream == null) { throw new ModelException("XML model is not valid [null]."); } try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder d... | @Test public void testLoadXML() throws Exception { XmlModelLoader loader = new XmlModelLoader(); File file = new File("conf/test/xml/sample.xml"); XmlModel model = loader.loadModel(new FileInputStream(file)); Assert.assertNotNull(model); Assert.assertEquals(1, model.getDocuments().size()); Document doc = model.getDocum... |
UmlModelLoader extends ModelLoader<UmlModel, File> { @Override public UmlModel loadModel(File modelFile) throws UmlModelException { if (modelFile == null) { return new UmlModel(UmlModelProducer.getInstance().createUmlModel(null)); } try { Model model = getUmlRootModel(modelFile); UmlModel umlModel = new UmlModel(model)... | @Test public void testLoadModel() throws ModelException { UmlModelLoader loader = new UmlModelLoader(); UmlModel umlModel = loader.loadModel(new File("conf/template/uml/sample.uml")); Assert.assertNotNull(umlModel); Assert.assertNotNull(umlModel.getModel()); Assert.assertSame(ModelImpl.class, umlModel.getModel().getCla... |
ReceiverServiceImpl implements ReceiverService { @Override public void receive(ProbeJson probeJson) { concurrentDataList.addProbeJson(probeJson); } @Override void receive(ProbeJson probeJson); @Override @Scheduled(cron = "0 0/20 7-23 * * ?") void commit(); @Override RealTimeJson statLatest(); } | @Test public void receive() throws Exception { receiverService.receive(new ProbeJson()); Thread.sleep(1000); System.out.println(ConcurrentDataList.instance().getAll().size()); } |
UserDaoImpl implements UserDao { @Override public UserEntity save(UserEntity userEntity) { return userRepository.save(userEntity); } @Override UserEntity findById(int id); @Override UserEntity findByName(String name); @Override UserEntity findByNameAndPassword(String name, String password); @Override UserEntity save(U... | @Test @Rollback @Transactional public void save() throws Exception { } |
UserDaoImpl implements UserDao { @Override public void delete(int id) { userRepository.delete(id); } @Override UserEntity findById(int id); @Override UserEntity findByName(String name); @Override UserEntity findByNameAndPassword(String name, String password); @Override UserEntity save(UserEntity userEntity); @Override... | @Test public void delete() throws Exception { } |
NewOldServiceImpl implements NewOldService { @Override public List<NewOldVo> getNewOldStat(int startHour, QueryThreshold threshold, int startRange, String probeId) throws ParamException { if (threshold==null) throw new ParamException(ServerCode.PARAM_FORMAT,"threshold","threshold cannot be null"); return newOldDao.getN... | @Test public void getNewOldStat() throws Exception { System.out.println(newOldService .getNewOldStat((int)(System.currentTimeMillis()/(3600*1000)-1), QueryThreshold.HOUR,10,null)); } |
NewOldServiceImpl implements NewOldService { @Override public List<Tuple<String, Number>> findByHourAndProbe(int hour, String probeId) { return ObjectMapper.convertToChartData(newOldDao.findByHourAndProbe(hour, probeId)); } @Override List<NewOldVo> getNewOldStat(int startHour, QueryThreshold threshold, int startRange,... | @Test public void findByHourAndProbe() throws Exception { } |
NewOldServiceImpl implements NewOldService { @Override public NewOldVo findById(int id) throws ServerException { NewOldEntity entity = newOldDao.findById(id); if (entity == null) throw new ServerException(ServerCode.NOT_FOUND); return new NewOldVo(entity); } @Override List<NewOldVo> getNewOldStat(int startHour, QueryT... | @Test public void findById() throws Exception { } |
NewOldServiceImpl implements NewOldService { @Override public NewOldVo save(NewOldCustomElement newOldCustomElement) { NewOldEntity entity = new NewOldEntity(); entity.setWifiProb(newOldCustomElement.getWifiProb()); entity.setHour(new Timestamp(newOldCustomElement.getHour()*3600*1000)); entity.setNewCustomer(newOldCust... | @Test public void save() throws Exception { } |
UserServiceImpl implements UserService { @Override public UserVo login(String username, String password) throws ServerException { UserEntity userEntity = userDao.findByName(username); if (userEntity==null) throw new ServerException(ServerCode.USER_NOT_FOUND); if (!userEntity.getPassword().equals(password)) throw new Se... | @Test public void login() throws Exception { System.out.println(userService.login("admin","admin")); try { userService.login("admin","ha"); fail(); } catch (ServerException e) { System.out.println(e.getMessage()); } } |
ActivenessServiceImpl implements ActivenessService { @Override public List<ActivenessVo> getActivenessStat(int startHour, QueryThreshold threshold, int startRange, String probeId) throws ParamException { if (threshold==null) throw new ParamException(ServerCode.PARAM_FORMAT,"threshold","threshold cannot be null"); retur... | @Test public void getActivenessStat() throws Exception { System.out.println(activenessService .getActivenessStat((int)(System.currentTimeMillis()/(3600*1000)), QueryThreshold.HOUR,10,null)); } |
ActivenessServiceImpl implements ActivenessService { @Override public List<Tuple<String, Number>> findByHourAndProbe(int hour, String probeId) { ActivenessEntity activenessEntity = activenessDao.findByHourAndProbe(hour, probeId); return ObjectMapper.convertToChartData(activenessEntity); } @Override List<ActivenessVo> ... | @Test public void findByHourAndProbe() throws Exception { System.out.println(activenessService.findByHourAndProbe((int)(System.currentTimeMillis()/(3600*1000)),"1s12sz")); } |
ActivenessServiceImpl implements ActivenessService { @Override public ActivenessVo findById(int id) throws ServerException { ActivenessEntity entity = activenessDao.findById(id); if (entity==null) throw new ServerException(ServerCode.NOT_FOUND); return new ActivenessVo(entity); } @Override List<ActivenessVo> getActive... | @Test public void findById() throws Exception { System.out.println(activenessService.findById(1)); } |
ReceiverServiceImpl implements ReceiverService { @Override @Scheduled(cron = "0 0/20 7-23 * * ?") public void commit() { new Thread( () -> { try { if (concurrentDataList.getSize()>0) { int sleep = (int) (Math.random()*60000); try { Thread.sleep(sleep); } catch (InterruptedException e) { e.printStackTrace(); } List<Prob... | @Test public void commit() throws Exception { } |
ActivenessServiceImpl implements ActivenessService { @Override public ActivenessVo save(CustomerActivenessElement activenessElement) { ActivenessEntity entity = new ActivenessEntity(); entity.setWifiProb(activenessElement.getWifiProb()); entity.setHour(new Timestamp(activenessElement.getHour()*3600*1000)); entity.setNu... | @Test public void save() throws Exception { } |
VisitCircleServiceImpl implements VisitCircleService { @Override public List<VisitCircleVo> getVisitCircleStat(int startHour, QueryThreshold threshold, int startRange, String probeId) throws ParamException { if (threshold==null) throw new ParamException(ServerCode.PARAM_FORMAT,"threshold","threshold cannot be null"); r... | @Test public void getVisitCircleStat() throws Exception { System.out.println(visitCircleService .getVisitCircleStat((int)(System.currentTimeMillis()/(3600*1000)-1), QueryThreshold.HOUR,10,null)); } |
VisitCircleServiceImpl implements VisitCircleService { @Override public List<Tuple<String, Number>> findByHourAndProbe(int hour, String probeId) { return ObjectMapper.convertToViewData( ObjectMapper.convertToChartData(visitCircleDao.findByHourAndProbe(hour, probeId)), ConvertType.circle); } @Override List<VisitCircleV... | @Test public void findByHourAndProbe() throws Exception { System.out.println((int)(System.currentTimeMillis()/(3600*1000)-1)); System.out.println(visitCircleService.findByHourAndProbe((int)(System.currentTimeMillis()/(3600*1000)),"1s12sz")); } |
VisitCircleServiceImpl implements VisitCircleService { @Override public VisitCircleVo findById(int id) throws ServerException { VisitCircleEntity visitCircleEntity = visitCircleDao.findById(id); if (visitCircleEntity==null) throw new ServerException(ServerCode.NOT_FOUND); return new VisitCircleVo(visitCircleEntity); } ... | @Test public void findById() throws Exception { } |
VisitCircleServiceImpl implements VisitCircleService { @Override public VisitCircleVo save(VisitingCycleElement visitingCycleElement) { VisitCircleEntity entity = new VisitCircleEntity(); entity.setWifiProb(visitingCycleElement.getWifiProb()); entity.setHour(new Timestamp(visitingCycleElement.getHour()*3600*1000)); Lis... | @Test public void save() throws Exception { } |
ProbeServiceImpl implements ProbeService { @Override public Page<ProbeVo> findAll(int page, int size) { Page<ProbeEntity> probeEntities = probeDao.findAll(page, size); return new PageImpl<>(probeEntities.getContent().stream().map(ProbeVo::new).collect(Collectors.toList()), probeEntities.nextPageable(),probeEntities.get... | @Test public void findAll() throws Exception { System.out.println(probeService.findAll(0,10).getContent()); } |
ProbeServiceImpl implements ProbeService { @Override public ProbeVo findById(int id) throws ServerException { ProbeEntity probeEntity = probeDao.findById(id); if (probeEntity==null) throw new ServerException(ServerCode.NOT_FOUND); return new ProbeVo(probeEntity); } @Override Page<ProbeVo> findAll(int page, int size); ... | @Test public void findById() throws Exception { System.out.println(probeService.findById(1)); } |
FlowServiceImpl implements FlowService { @Override public List<FlowVo> getFStat(int startHour, QueryThreshold threshold, int startRange, String probeId) throws ParamException { if (threshold==null) throw new ParamException(ServerCode.PARAM_FORMAT,"threshold","threshold cannot be null"); return flowDao.getFlowStat(start... | @Test public void getFStat() throws Exception { System.out.println(flowService .getFStat((int)(System.currentTimeMillis()/(3600*1000)-1), QueryThreshold.HOUR,10,null)); } |
FlowServiceImpl implements FlowService { @Override public List<Tuple<String, Number>> findByHourAndProbe(int hour, String probeId) { return ObjectMapper.convertToChartData(flowDao.findByHourAndProbe(hour, probeId)); } @Override List<FlowVo> getFStat(int startHour, QueryThreshold threshold, int startRange, String probe... | @Test public void findByHourAndProbe() throws Exception { System.out.println(flowService.findByHourAndProbe((int)(System.currentTimeMillis()/(3600*1000)-1),"1s12sz")); } |
FlowServiceImpl implements FlowService { @Override public FlowVo findById(int id) throws ServerException { FlowEntity entity = flowDao.findById(id); if (entity==null) throw new ServerException(ServerCode.NOT_FOUND); return new FlowVo(entity); } @Override List<FlowVo> getFStat(int startHour, QueryThreshold threshold, i... | @Test public void findById() throws Exception { } |
HttpTools { public static URLConnection sendGet(String url) { try { URL realUrl = new URL(url); URLConnection connection = realUrl.openConnection(); connection.setRequestProperty("connection", "Keep-Alive"); connection.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)"); connectio... | @Test public void sendGet() throws Exception { URLConnection connection = HttpTools.sendGet("http: Map<String, List<String>> map = connection.getHeaderFields(); for (String key : map.keySet()) { System.out.println(key + "--->" + map.get(key)); } } |
FlowServiceImpl implements FlowService { @Override public FlowVo save(CustomerFlowElement flowElement) { FlowEntity flowEntity = new FlowEntity(); flowEntity.setWifiProb(flowElement.getWifiProb()); flowEntity.setHour(new Timestamp(flowElement.getHour()*3600*1000)); flowEntity.setInNoOutWifi(flowElement.getInNoOutWifi()... | @Test public void save() throws Exception { } |
StoreHoursServiceImpl implements StoreHoursService { @Override public List<StoreHoursVo> getStoreHoursStat(int startHour, QueryThreshold threshold, int startRange, String probeId) throws ParamException { if (threshold==null) throw new ParamException(ServerCode.PARAM_FORMAT,"threshold","threshold cannot be null"); retur... | @Test public void getStoreHoursStat() throws Exception { System.out.println(storeHoursService .getStoreHoursStat((int)(System.currentTimeMillis()/(3600*1000)-1000), QueryThreshold.DAY,30,null)); } |
StoreHoursServiceImpl implements StoreHoursService { @Override public List<Tuple<String, Number>> findByHourAndProbe(int hour, String probeId) { return ObjectMapper.convertToViewData( ObjectMapper.convertToChartData(storeHoursDao.findByHourAndProbe(hour, probeId)), ConvertType.store); } @Override List<StoreHoursVo> ge... | @Test public void findByHourAndProbe() throws Exception { System.out.println(storeHoursService.findByHourAndProbe((int)(System.currentTimeMillis()/(3600*1000)),"1s12sz")); } |
StoreHoursServiceImpl implements StoreHoursService { @Override public StoreHoursVo findById(int id) throws ServerException { StoreHoursEntity entity = storeHoursDao.findById(id); if (entity==null) throw new ServerException(ServerCode.NOT_FOUND); return new StoreHoursVo(entity); } @Override List<StoreHoursVo> getStoreH... | @Test public void findById() throws Exception { } |
StoreHoursServiceImpl implements StoreHoursService { @Override public StoreHoursVo save(InStoreHoursElement storeHoursElement) { StoreHoursEntity entity = new StoreHoursEntity(); entity.setWifiProb(storeHoursElement.getWifiProb()); entity.setHour(new Timestamp(storeHoursElement.getHour()*3600*1000)); List<Tuple<Long,In... | @Test public void save() throws Exception { } |
HttpTools { public static String getLocalIp() { InputStream inputStream = HttpTools.class.getClassLoader().getResourceAsStream("config/ipconfig"); BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); try { String config = reader.readLine(); Enumeration<NetworkInterface> netInterfaces; try { n... | @Test public void getLocalIp() throws Exception { System.out.println(HttpTools.getLocalIp()); } |
ActivenessDaoImpl implements ActivenessDao { @Override public List<ActivenessVo> getActivenessStat(int startHour, QueryThreshold threshold, int statRange, String probeId) { String isProbeSelected = probeId==null || probeId.isEmpty()? "": "AND wifiProb = :probeId "; String sqlQuery = "SELECT wifiProb,DATE_FORMAT(hour,:d... | @Test public void getActivenessStat() throws Exception { long time = System.currentTimeMillis(); int hour = (int) (time/(1000*60*60)); System.out.println(activenessDao.getActivenessStat(hour, QueryThreshold.HOUR, 10, null)); } |
ActivenessDaoImpl implements ActivenessDao { @Override public ActivenessEntity findByHourAndProbe(int hour, String probeId) { Timestamp timestamp = new Timestamp(((long) hour)*3600*1000); System.out.println(timestamp.getTime()); return activenessRepository.findByHourAndWifiProb(timestamp,probeId); } @Override List<Act... | @Test public void findByHourAndProbe() throws Exception { } |
ActivenessDaoImpl implements ActivenessDao { @Override public ActivenessEntity findById(int id) { return activenessRepository.findOne(id); } @Override List<ActivenessVo> getActivenessStat(int startHour, QueryThreshold threshold, int statRange, String probeId); @Override ActivenessEntity findByHourAndProbe(int hour, St... | @Test public void findById() throws Exception { } |
ActivenessDaoImpl implements ActivenessDao { @Override public ActivenessEntity save(ActivenessEntity entity) { return activenessRepository.save(entity); } @Override List<ActivenessVo> getActivenessStat(int startHour, QueryThreshold threshold, int statRange, String probeId); @Override ActivenessEntity findByHourAndProb... | @Test public void save() throws Exception { } |
UserDaoImpl implements UserDao { @Override public UserEntity findById(int id) { return userRepository.findOne(id); } @Override UserEntity findById(int id); @Override UserEntity findByName(String name); @Override UserEntity findByNameAndPassword(String name, String password); @Override UserEntity save(UserEntity userEn... | @Test public void findById() throws Exception { System.out.println(userDao.findById(1).getUsername()); } |
UserDaoImpl implements UserDao { @Override public UserEntity findByName(String name) { return userRepository.findByUsername(name); } @Override UserEntity findById(int id); @Override UserEntity findByName(String name); @Override UserEntity findByNameAndPassword(String name, String password); @Override UserEntity save(U... | @Test public void findByName() throws Exception { System.out.println(userDao.findByName("admin")); } |
PotentiometerSimulator implements ISimulatorUpdater { public boolean isSetup() { return mIsSetup; } PotentiometerSimulator(IAnalogInWrapper aWrapper, IPwmWrapper aSpeedController); void setParameters(double aThrow, double aMinVoltage, double aMaxVoltage); @Override void update(); boolean isSetup(); @Override Object get... | @Test public void testIncompletePotSim() { PotentiometerSimulator pot = new PotentiometerSimulator(null, null); Assertions.assertFalse(pot.isSetup()); new AnalogInput(0); pot = new PotentiometerSimulator(SensorActuatorRegistry.get().getAnalogIn().get(0), null); Assertions.assertFalse(pot.isSetup()); } |
CompressorWrapper extends ASensorWrapper { public CompressorWrapper() { super("Compressor"); mAirPressure = 120; mChargeRate = .25; } CompressorWrapper(); void setChargeRate(double aChargeRate); void solenoidFired(double aPressure); void update(); double getAirPressure(); } | @Test public void testCompressorWrapper() { CompressorWrapper compressor = new CompressorWrapper(); compressor.setChargeRate(.1); Assertions.assertEquals(120, compressor.getAirPressure(), DOUBLE_EPSILON); compressor.solenoidFired(60); Assertions.assertEquals(60, compressor.getAirPressure(), DOUBLE_EPSILON); simulateFor... |
ASimulator implements ISimulatorUpdater { protected ASimulator() { } protected ASimulator(); boolean loadConfig(String aConfigFile); @Override void update(); @Override void setRobot(IRobotClassContainer aRobot); String getConfigFile(); } | @Test public void testASimulator() { String file = extractFiles("testReadFile.yml"); ASimulator baseSimulator = new ASimulator(); Assertions.assertTrue(baseSimulator.loadConfig(file)); new MockRobot(); AccelerometerWrapperAccessor accelerometerAccessor = DataAccessorFactory.getInstance().getAccelerometerAccessor(); Ana... |
JoystickFactory { private JoystickFactory() { mJoystickMap = new IMockJoystick[DriverStation.kJoystickPorts]; for (int i = 0; i < DriverStation.kJoystickPorts; ++i) { mJoystickMap[i] = new NullJoystick(); } mControllerConfig = JoystickDiscoverer.rediscoverJoysticks(); loadSticks(); } private JoystickFactory(); static ... | @Test public void testJoystickFactory() { File configFile = new File(JoystickFactory.sJOYSTICK_CONFIG_FILE); if (configFile.exists()) { Assertions.assertTrue(configFile.delete()); } if (!configFile.getParentFile().exists()) { Assertions.assertTrue(configFile.getParentFile().mkdirs()); } JoystickFactory factory = Joysti... |
XboxJoystick extends BaseJoystick { @Override public float[] getAxisValues() { float[] output = super.getAxisValues(); float triggerValue = output[2]; if (triggerValue < 0) { output[2] = 0; output[3] = triggerValue; } else { output[2] = triggerValue; output[3] = 0; } return output; } XboxJoystick(Controller aController... | @Test public void testKeyboardJoystick() throws Exception { XboxJoystick joystick = new XboxJoystick(new MockController()); float[] axisValues = joystick.getAxisValues(); short[] povValues = joystick.getPovValues(); int buttonMask = joystick.getButtonMask(); Assertions.assertEquals(6, axisValues.length); Assertions.ass... |
KeyboardJoystick extends BaseJoystick { public KeyboardJoystick(Controller aController) { this(aController, "Keyboard"); } KeyboardJoystick(Controller aController); KeyboardJoystick(Controller aController, String aName); @Override float[] getAxisValues(); @Override short[] getPovValues(); } | @Test public void testKeyboardJoystick() throws Exception { MockController controller = new MockController(); KeyboardJoystick joystick = new KeyboardJoystick(controller); short[] povValues = joystick.getPovValues(); Assertions.assertEquals(-1, povValues[0]); testAxis(joystick, 0, 0, 0, 0, 0, 0); reset(controller); con... |
GuavaUtils { public static <T> boolean isPresent(T t){ Optional<T>optionalObj = Optional.fromNullable(t); return optionalObj.isPresent(); } static boolean isPresent(T t); } | @Test public void isPresentTest(){ B1 b = null; assertEquals(false, GuavaUtils.isPresent(b)); b = new B1(); assertEquals(true, GuavaUtils.isPresent(b)); } |
DozerUtils { public static <T> T convertSourceObjToDesObj(Object source,Class<T> destinationClass){ return mapper.map(source, destinationClass); } static T convertSourceObjToDesObj(Object source,Class<T> destinationClass); static void main(String[] args); } | @Test public void testDozer(){ B1 b = new B1(); b.setName("sa"); B2 b2 = DozerUtils.convertSourceObjToDesObj(b, B2.class); Assert.assertEquals("sa", b2.getAge()); } |
AgentMaster { private AgentMaster(SmartConf conf) throws IOException { String[] addresses = AgentUtils.getMasterAddress(conf); if (addresses == null) { throw new IOException("AgentMaster address not configured!"); } String address = addresses[0]; LOG.info("Agent master: " + address); Config config = AgentUtils.override... | @Test public void testAgentMaster() throws Exception { AgentMaster master = AgentMaster.getAgentMaster(); while (master.getMasterActor() == null) { } String instId = "instance-0"; Object answer = master.askMaster(AgentToMaster.RegisterNewAgent.getInstance(instId)); assertTrue(answer instanceof MasterToAgent.AgentRegist... |
MetaStore implements CopyMetaService, CmdletMetaService, BackupMetaService { public FileInfo getFile(long fid) throws MetaStoreException { updateCache(); try { return fileInfoDao.getById(fid); } catch (EmptyResultDataAccessException e) { return null; } catch (Exception e) { throw new MetaStoreException(e); } } MetaStor... | @Test public void testGetNonExistFile() throws Exception { FileInfo info = metaStore.getFile("/non_exist_file_path"); Assert.assertTrue(info == null); } |
MetaStore implements CopyMetaService, CmdletMetaService, BackupMetaService { public long getStoreCapacityOfDifferentStorageType(String storageType) throws MetaStoreException { try { int sid = 0; if (storageType.equals("ram")) { sid = 0; } if (storageType.equals("ssd")) { sid = 1; } if (storageType.equals("disk")) { sid... | @Test public void testGetStoreCapacityOfDifferentStorageType() throws Exception { DataNodeStorageInfo info1 = new DataNodeStorageInfo("1", "ssd", 1, "1", 1, 1, 1, 1, 1); DataNodeStorageInfo info2 = new DataNodeStorageInfo("2", "ssd", 2, "2", 2, 2, 2, 2, 2); metaStore.insertDataNodeStorageInfo(info1); metaStore.insertDa... |
MetaStore implements CopyMetaService, CmdletMetaService, BackupMetaService { public long getStoreFreeOfDifferentStorageType(String storageType) throws MetaStoreException { try { int sid = 0; if (storageType.equals("ram")) { sid = 0; } if (storageType.equals("ssd")) { sid = 1; } if (storageType.equals("disk")) { sid = 2... | @Test public void testGetStoreFreeOfDifferentStorageType() throws Exception { DataNodeStorageInfo info1 = new DataNodeStorageInfo("1", "ssd", 1, "1", 1, 1, 1, 1, 1); DataNodeStorageInfo info2 = new DataNodeStorageInfo("2", "ssd", 2, "2", 2, 2, 2, 2, 2); metaStore.insertDataNodeStorageInfo(info1); metaStore.insertDataNo... |
MetaStore implements CopyMetaService, CmdletMetaService, BackupMetaService { public Map<String, StorageCapacity> getStorageCapacity() throws MetaStoreException { updateCache(); Map<String, StorageCapacity> ret = new HashMap<>(); Map<String, StorageCapacity> currentMapStorageCapacity = mapStorageCapacity; if (currentMap... | @Test public void testGetStorageCapacity() throws Exception { StorageCapacity storage1 = new StorageCapacity("HDD", 12343333L, 2223333L); StorageCapacity storage2 = new StorageCapacity("RAM", 12342233L, 2223663L); StorageCapacity[] storages = {storage1, storage2}; metaStore.insertUpdateStoragesTable(storages); Assert.a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.