Add oving0

This commit is contained in:
Andreas Omholt Olsen
2026-01-05 13:47:03 +01:00
parent 33086c14b8
commit 977b9310ef
24 changed files with 1061 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
package oving0;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class HelloWorldTest {
private HelloWorld helloWorld;
@BeforeEach
public void setUp() {
helloWorld = new HelloWorld();
}
@Test
public void testHelloWorld() {
assertEquals("Hello World!", helloWorld.getHelloWorld());
}
@Test
public void testHelloWorldLength() {
assertEquals(12, helloWorld.getHelloWorldLength());
}
}