Update of exercises
parent
54d2661c66
commit
ce6e8541ae
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue