diff --git a/solutions/src/main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java b/solutions/src/main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java index 1d37afb..5796211 100644 --- a/solutions/src/main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java +++ b/solutions/src/main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java @@ -106,7 +106,7 @@ public class FuseTest { Assertions.assertThrows(FuseTrippedException.class, () -> { - Fuse f2 = new Fuse(Fuse.A32); + Fuse f2 = new Fuse(Fuse.A16); f2.use(0); f2.use(16); f2.use(25); diff --git a/sources/src/main/java/pr2/exceptions/eigene_ausnahme/Fuse.java b/sources/src/main/java/pr2/exceptions/eigene_ausnahme/Fuse.java index 005ba13..7c2180f 100644 --- a/sources/src/main/java/pr2/exceptions/eigene_ausnahme/Fuse.java +++ b/sources/src/main/java/pr2/exceptions/eigene_ausnahme/Fuse.java @@ -33,7 +33,7 @@ public class Fuse { * ungültigen Spannungswert. */ 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; } diff --git a/sources/src/main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java b/sources/src/main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java index 2495370..66dd5e0 100644 --- a/sources/src/main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java +++ b/sources/src/main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java @@ -107,7 +107,7 @@ public class FuseTest { // // // Assertions.assertThrows(FuseTrippedException.class, () -> { -// Fuse f2 = new Fuse(Fuse.A32); +// Fuse f2 = new Fuse(Fuse.A16); // f2.use(0); // f2.use(16); // f2.use(25);