CityItemWriteService implements CityItemWriteFacade { @Override public ICResponse<Boolean> sellerUpdateStatus(CityItemUpdateStatusRequest request) { if (request == null) { throw new IllegalArgumentException("seller_update_status request is null"); } request.checkParam(); ICResponse<Boolean> booleanICResponse = cityItemWriteFacade.sellerUpdateStatus(request); return booleanICResponse; }  @Override ICResponse<Boolean> batchBindCity(CityBatchBindToItemRequest request); @Override ICResponse<Boolean> update(CityItemUpdateRequest request); @Override ICResponse<Boolean> sellerUpdateStatus(CityItemUpdateStatusRequest request);  }
@Test public void sellerUpdateStatus() { CityItemUpdateStatusRequest request = new CityItemUpdateStatusRequest(); request.setCityId(30L); request.setSellerId(10L); request.setUpdatedBy(100L); request.setStatus(ItemStatus.DISABLE); List<IdVersionPair> idVersionPairs = Lists.newArrayList(); IdVersionPair pair = new IdVersionPair(); pair.setId(1L); pair.setVersion(1); idVersionPairs.add(pair); request.setTargetList(idVersionPairs); ICResponse<Boolean> booleanICResponse = cityItemWriteService.sellerUpdateStatus(request); printJson(booleanICResponse); assertNotNull(booleanICResponse); assertTrue(booleanICResponse.isSuccess()); assertTrue(booleanICResponse.getResult()); }