From ce6e8541ae1fd78404d87c6db5670c15f6be4f35 Mon Sep 17 00:00:00 2001 From: Thomas Smits Date: Mon, 22 Jan 2024 16:34:34 +0100 Subject: [PATCH] Update of exercises --- .../main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java | 2 +- sources/src/main/java/pr2/exceptions/eigene_ausnahme/Fuse.java | 2 +- .../main/java/pr2/exceptions/eigene_ausnahme/test/FuseTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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);