From e84b17ce1becb9127c49bd50859dc18328935435 Mon Sep 17 00:00:00 2001 From: jannisfingerhut Date: Fri, 10 Feb 2023 23:25:39 +0100 Subject: [PATCH] #35 UnitTest erweitert --- LernProgramm/testProgramm.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/LernProgramm/testProgramm.java b/LernProgramm/testProgramm.java index 00a061a..8a490ef 100644 --- a/LernProgramm/testProgramm.java +++ b/LernProgramm/testProgramm.java @@ -128,6 +128,16 @@ class testProgramm { assertEquals("Welches Jahr möchtest du untersuchen?\nSchaltjahr!\n", out.toString()); } +@Test + public void testNumber() { + int expected = 0; + int actual = getNumber(); + assertEquals(expected, actual); + } + + private int getNumber() { + return 0; + }