From 58ec657077facae3433e4a4cb6660953339a765c Mon Sep 17 00:00:00 2001 From: Martin Imobersteg Date: Wed, 12 Apr 2023 10:47:48 +0200 Subject: [PATCH] Add failing test for #1 --- .../BeatlesSongGeneratorApplicationTests.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/java/com/example/beatlessonggenerator/BeatlesSongGeneratorApplicationTests.java b/src/test/java/com/example/beatlessonggenerator/BeatlesSongGeneratorApplicationTests.java index 171955c..664db66 100644 --- a/src/test/java/com/example/beatlessonggenerator/BeatlesSongGeneratorApplicationTests.java +++ b/src/test/java/com/example/beatlessonggenerator/BeatlesSongGeneratorApplicationTests.java @@ -6,6 +6,7 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.ApplicationContext; +import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertTrue; @Slf4j @@ -38,4 +39,10 @@ void happyTest() { assertTrue(true); } + @Test + void testGuitar() { + var guitar = applicationContext.getBean(Guitar.class); + assertNotEquals("huuuuuummmmmmmmmmmmmmm", guitar.generate(1)); + } + }