BAEL-1645 fix
This commit is contained in:
parent
07ef351e88
commit
5d5b44c0a9
|
@ -43,6 +43,11 @@ public class Car {
|
|||
Assert.isNull(oil, "oil must be null");
|
||||
// ...
|
||||
}
|
||||
|
||||
public void replaceBattery(CarBattery carBattery){
|
||||
Assert.isNull(carBattery.getCharge(), "to replace battery the charge must be null");
|
||||
// ...
|
||||
}
|
||||
|
||||
public void сhangeEngine(Engine engine) {
|
||||
Assert.isInstanceOf(ToyotaEngine.class, engine);
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
package com.baeldung.assertions;
|
||||
|
||||
public class CarBattery {
|
||||
private String charge;
|
||||
|
||||
public String getCharge() {
|
||||
return charge;
|
||||
}
|
||||
|
||||
public void setCharge(String charge) {
|
||||
this.charge = charge;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue