diff --git a/src/test/java/org/bitbiome/commands/LookaroundCommandTest.java b/src/test/java/org/bitbiome/commands/LookaroundCommandTest.java index acbdf56..f298900 100644 --- a/src/test/java/org/bitbiome/commands/LookaroundCommandTest.java +++ b/src/test/java/org/bitbiome/commands/LookaroundCommandTest.java @@ -174,5 +174,19 @@ public class LookaroundCommandTest { assertEquals(expectedDescription, outputMessage.toString()); } + @Test + public void testUnknownLocationDescription() { + LookaroundCommand command = new LookaroundCommand(); + ArrayList enemies = new ArrayList(); + enemies.add(new Mob("unknown", false, 50,20)); + ArrayList items = new ArrayList(); + items.add(new Item("unknown",true, 10, 1)); + Location location = new Location("Unknown",enemies, items); + StringBuilder outputMessage = new StringBuilder(); + + command.getLocationDescription(location, outputMessage); + + assertEquals("", outputMessage.toString()); + } }