diff --git a/src/test/java/org/bitbiome/commands/LookaroundCommandTest.java b/src/test/java/org/bitbiome/commands/LookaroundCommandTest.java index cc0fa77..45f3887 100644 --- a/src/test/java/org/bitbiome/commands/LookaroundCommandTest.java +++ b/src/test/java/org/bitbiome/commands/LookaroundCommandTest.java @@ -106,4 +106,17 @@ public class LookaroundCommandTest { String expectedOutput = "Achtung, hier lauern Gefahren! Sei auf der Hut vor: \n- Big Foot\n- Yeti\n"; assertEquals(expectedOutput, outputMessage.toString()); } + @Test + public void testGetMobsOutputWithoutMobsAndItems() { + LookaroundCommand command = new LookaroundCommand(); + int randomNumberMobs = 0; + int randomNumberItems = 0; + StringBuilder outputMessage = new StringBuilder(); + ArrayList foundMobs = new ArrayList<>(); + + command.getMobsOutput(randomNumberMobs, randomNumberItems, outputMessage, foundMobs); + + String expectedOutput = "Hier gibt es sonst nichts weiter zu sehen. Reise weiter!\n"; + assertEquals(expectedOutput, outputMessage.toString()); + } }