@Test public void testCheckActionNameExit() { when(actionRepository.checkActionNameExit("test")).thenReturn(false); Boolean exist = actionService.checkActionNameExit("test"); assertThat(exist == false); }
public boolean checkActionNameExit(String name) { return actionRepository.checkActionNameExit(name); }
ActionService { public boolean checkActionNameExit(String name) { return actionRepository.checkActionNameExit(name); } }
ActionService { public boolean checkActionNameExit(String name) { return actionRepository.checkActionNameExit(name); } @Autowired  ActionService(BaseRepository repository, ActionRepository actionRepository, MdmsRepository mdmsRepository); }
ActionService { public boolean checkActionNameExit(String name) { return actionRepository.checkActionNameExit(name); } @Autowired  ActionService(BaseRepository repository, ActionRepository actionRepository, MdmsRepository mdmsRepository); List<Action> getActions(ActionSearchCriteria actionSearchCriteria); ActionValidation validate(ValidateActionCriteria criteria); List<Action> createAction(ActionRequest actionRequest); List<Action> updateAction(ActionRequest actionRequest); boolean checkActionNameExit(String name); boolean checkCombinationOfUrlAndqueryparamsExist(String url, String queryParams); List<Module> getAllActionsBasedOnRoles(final ActionRequest actionRequest); List<Action> getAllActions(final ActionRequest actionRequest); List<Action> getAllMDMSActions(final ActionRequest actionRequest); boolean isAuthorized(AuthorizationRequest authorizeRequest); }
ActionService { public boolean checkActionNameExit(String name) { return actionRepository.checkActionNameExit(name); } @Autowired  ActionService(BaseRepository repository, ActionRepository actionRepository, MdmsRepository mdmsRepository); List<Action> getActions(ActionSearchCriteria actionSearchCriteria); ActionValidation validate(ValidateActionCriteria criteria); List<Action> createAction(ActionRequest actionRequest); List<Action> updateAction(ActionRequest actionRequest); boolean checkActionNameExit(String name); boolean checkCombinationOfUrlAndqueryparamsExist(String url, String queryParams); List<Module> getAllActionsBasedOnRoles(final ActionRequest actionRequest); List<Action> getAllActions(final ActionRequest actionRequest); List<Action> getAllMDMSActions(final ActionRequest actionRequest); boolean isAuthorized(AuthorizationRequest authorizeRequest);  }