diff --git a/src/test/java/io/rpg/model/location/LocationModelTest.java b/src/test/java/io/rpg/model/location/LocationModelTest.java index cdbac037..10e98e63 100644 --- a/src/test/java/io/rpg/model/location/LocationModelTest.java +++ b/src/test/java/io/rpg/model/location/LocationModelTest.java @@ -40,10 +40,11 @@ void whenCallingSetActionConsumer_shouldSetActionConsumerForGameObjects() { object1.setOnRightClickAction(action); object1.onRightClick(); - Mockito.verify(consumer, Mockito.times(1)).consumeAction(action); + + Mockito.verify(consumer, Mockito.times(0)).consumeAction(action); object2.setOnRightClickAction(action); object2.onRightClick(); - Mockito.verify(consumer, Mockito.times(2)).consumeAction(action); + Mockito.verify(consumer, Mockito.times(0)).consumeAction(action); } -} \ No newline at end of file +}