@Test public void test_can_validation_should_return_false_for_create_request() { final ServiceRequest serviceRequest = createServiceRequest(false); assertFalse(validator.canValidate(serviceRequest)); }
@Override public boolean canValidate(ServiceRequest serviceRequest) { return serviceRequest.isModifyServiceRequest(); }
UpdateRequestEligibilityValidator implements ServiceRequestValidator { @Override public boolean canValidate(ServiceRequest serviceRequest) { return serviceRequest.isModifyServiceRequest(); } }
UpdateRequestEligibilityValidator implements ServiceRequestValidator { @Override public boolean canValidate(ServiceRequest serviceRequest) { return serviceRequest.isModifyServiceRequest(); } UpdateRequestEligibilityValidator(UpdateServiceRequestEligibilityService updateRequestEligibilityService); }
UpdateRequestEligibilityValidator implements ServiceRequestValidator { @Override public boolean canValidate(ServiceRequest serviceRequest) { return serviceRequest.isModifyServiceRequest(); } UpdateRequestEligibilityValidator(UpdateServiceRequestEligibilityService updateRequestEligibilityService); @Override boolean canValidate(ServiceRequest serviceRequest); @Override void validate(ServiceRequest serviceRequest); }
UpdateRequestEligibilityValidator implements ServiceRequestValidator { @Override public boolean canValidate(ServiceRequest serviceRequest) { return serviceRequest.isModifyServiceRequest(); } UpdateRequestEligibilityValidator(UpdateServiceRequestEligibilityService updateRequestEligibilityService); @Override boolean canValidate(ServiceRequest serviceRequest); @Override void validate(ServiceRequest serviceRequest);  }