Update of exercises

master
Thomas Smits 2024-01-22 16:34:34 +01:00
parent 54d2661c66
commit ce6e8541ae
3 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ public class FuseTest {
Assertions.assertThrows(FuseTrippedException.class, () -> { Assertions.assertThrows(FuseTrippedException.class, () -> {
Fuse f2 = new Fuse(Fuse.A32); Fuse f2 = new Fuse(Fuse.A16);
f2.use(0); f2.use(0);
f2.use(16); f2.use(16);
f2.use(25); f2.use(25);

View File

@ -33,7 +33,7 @@ public class Fuse {
* ungültigen Spannungswert. * ungültigen Spannungswert.
*/ */
public Fuse(int tripCurrent) { public Fuse(int tripCurrent) {
// TODO: FuseTrippedException werfen, wenn der Strom zu groß ist // TODO: IllegalCurrentException werfen, wenn der Strom ungültig ist
this.tripCurrent = tripCurrent; this.tripCurrent = tripCurrent;
} }

View File

@ -107,7 +107,7 @@ public class FuseTest {
// //
// //
// Assertions.assertThrows(FuseTrippedException.class, () -> { // Assertions.assertThrows(FuseTrippedException.class, () -> {
// Fuse f2 = new Fuse(Fuse.A32); // Fuse f2 = new Fuse(Fuse.A16);
// f2.use(0); // f2.use(0);
// f2.use(16); // f2.use(16);
// f2.use(25); // f2.use(25);