@Test public void shouldRejectImmutableAttributesForReassigningHost() { host = new Host(); host.setId(23); host.setName("name"); host.setClusterId(2); host.setCoreDeviceId("43"); host.setManagementIp("119.9.9.9"); host.setMaxConcurrentConnections(34); host.setType(HostType.FAILOVER); res = hv.validate(host, ReassignHostContext.REASSIGN_HOST); assertFalse(resultMessage(res, ReassignHostContext.REASSIGN_HOST), res.passedValidation()); }
@Override public ValidatorResult validate(Host host, Object ctx) { return validator.validate(host, ctx); }
HostValidator implements ResourceValidator<Host> { @Override public ValidatorResult validate(Host host, Object ctx) { return validator.validate(host, ctx); } }
HostValidator implements ResourceValidator<Host> { @Override public ValidatorResult validate(Host host, Object ctx) { return validator.validate(host, ctx); } HostValidator(); }
HostValidator implements ResourceValidator<Host> { @Override public ValidatorResult validate(Host host, Object ctx) { return validator.validate(host, ctx); } HostValidator(); @Override ValidatorResult validate(Host host, Object ctx); @Override Validator<Host> getValidator(); }
HostValidator implements ResourceValidator<Host> { @Override public ValidatorResult validate(Host host, Object ctx) { return validator.validate(host, ctx); } HostValidator(); @Override ValidatorResult validate(Host host, Object ctx); @Override Validator<Host> getValidator();  }