toString methods for Commands.
This commit is contained in:
parent
1c1a28f0a8
commit
97f9e99437
3 changed files with 20 additions and 0 deletions
|
@ -85,4 +85,11 @@ public class BolusCommand implements Command {
|
|||
throw new CommandException().message("Failed to set correct bolus. Expected: " + bolus + ", actual: " + displayedBolus);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "BolusCommand{" +
|
||||
"bolus=" + bolus +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,4 +17,9 @@ public class CancelTbrCommand implements Command {
|
|||
}
|
||||
return new SetTbrCommand(100, 0).execute(scripter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CancelTbrCommand{}";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -235,4 +235,12 @@ public class SetTbrCommand implements Command {
|
|||
throw new CommandException().message("Setting TBR failed, TBR in MAIN_MENU differs from expected");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SetTbrCommand{" +
|
||||
"percentage=" + percentage +
|
||||
", duration=" + duration +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue