@Test public void shouldNotThrowErrorIfAnyOneProblemTrue() throws Exception { RefrigeratorProblem refrigeratorProblem = new RefrigeratorProblem(null, true, null, null, null, null, null, null); refrigeratorProblem.validate(); }
public void validate() { if (!(isTrue(operatorError) || isTrue(burnerProblem) || isTrue(gasLeakage) || isTrue(egpFault) || isTrue(thermostatSetting) || isTrue(other))) { throw new DataException("error.invalid.reading.value"); } }
RefrigeratorProblem extends BaseModel { public void validate() { if (!(isTrue(operatorError) || isTrue(burnerProblem) || isTrue(gasLeakage) || isTrue(egpFault) || isTrue(thermostatSetting) || isTrue(other))) { throw new DataException("error.invalid.reading.value"); } } }
RefrigeratorProblem extends BaseModel { public void validate() { if (!(isTrue(operatorError) || isTrue(burnerProblem) || isTrue(gasLeakage) || isTrue(egpFault) || isTrue(thermostatSetting) || isTrue(other))) { throw new DataException("error.invalid.reading.value"); } }  }
RefrigeratorProblem extends BaseModel { public void validate() { if (!(isTrue(operatorError) || isTrue(burnerProblem) || isTrue(gasLeakage) || isTrue(egpFault) || isTrue(thermostatSetting) || isTrue(other))) { throw new DataException("error.invalid.reading.value"); } }  void validate(); }
RefrigeratorProblem extends BaseModel { public void validate() { if (!(isTrue(operatorError) || isTrue(burnerProblem) || isTrue(gasLeakage) || isTrue(egpFault) || isTrue(thermostatSetting) || isTrue(other))) { throw new DataException("error.invalid.reading.value"); } }  void validate();  }