toString methods for Commands.

This commit is contained in:
Johannes Mockenhaupt 2017-07-14 15:01:20 +02:00
parent 1c1a28f0a8
commit 97f9e99437
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
3 changed files with 20 additions and 0 deletions

View file

@ -85,4 +85,11 @@ public class BolusCommand implements Command {
throw new CommandException().message("Failed to set correct bolus. Expected: " + bolus + ", actual: " + displayedBolus); throw new CommandException().message("Failed to set correct bolus. Expected: " + bolus + ", actual: " + displayedBolus);
} }
} }
@Override
public String toString() {
return "BolusCommand{" +
"bolus=" + bolus +
'}';
}
} }

View file

@ -17,4 +17,9 @@ public class CancelTbrCommand implements Command {
} }
return new SetTbrCommand(100, 0).execute(scripter); return new SetTbrCommand(100, 0).execute(scripter);
} }
@Override
public String toString() {
return "CancelTbrCommand{}";
}
} }

View file

@ -235,4 +235,12 @@ public class SetTbrCommand implements Command {
throw new CommandException().message("Setting TBR failed, TBR in MAIN_MENU differs from expected"); throw new CommandException().message("Setting TBR failed, TBR in MAIN_MENU differs from expected");
} }
} }
@Override
public String toString() {
return "SetTbrCommand{" +
"percentage=" + percentage +
", duration=" + duration +
'}';
}
} }