From 5091e5da08e54ad0e050d53e78bc0fdc108da70d Mon Sep 17 00:00:00 2001 From: Rosskaman <32296125+Rosskaman@users.noreply.github.com> Date: Sat, 17 Apr 2021 22:26:05 +0200 Subject: [PATCH] Fixed the tests that no longer work because of change in .convertBlock arguments --- .../greenhouses/greenhouse/BiomeRecipeTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/world/bentobox/greenhouses/greenhouse/BiomeRecipeTest.java b/src/test/java/world/bentobox/greenhouses/greenhouse/BiomeRecipeTest.java index 08c8282..b58304c 100644 --- a/src/test/java/world/bentobox/greenhouses/greenhouse/BiomeRecipeTest.java +++ b/src/test/java/world/bentobox/greenhouses/greenhouse/BiomeRecipeTest.java @@ -263,7 +263,7 @@ public class BiomeRecipeTest { Block ab = mock(Block.class); when(ab.getType()).thenReturn(Material.WATER); when(b.getRelative(any())).thenReturn(ab); - br.convertBlock(gh, b); + br.convertBlock(b); verify(b).setType(Material.CLAY); } @@ -282,7 +282,7 @@ public class BiomeRecipeTest { when(b.getRelative(any())).thenReturn(ab); when(ab.getLocation()).thenReturn(location); when(gh.contains(any())).thenReturn(false); - br.convertBlock(gh, b); + br.convertBlock(b); verify(b, never()).setType(any()); } @@ -299,7 +299,7 @@ public class BiomeRecipeTest { Block ab = mock(Block.class); when(ab.getType()).thenReturn(Material.SAND); when(b.getRelative(any())).thenReturn(ab); - br.convertBlock(gh, b); + br.convertBlock(b); verify(b, never()).setType(Material.CLAY); } @@ -311,7 +311,7 @@ public class BiomeRecipeTest { // Mock Block b = mock(Block.class); when(b.getType()).thenReturn(Material.SAND); - br.convertBlock(gh, b); + br.convertBlock(b); verify(b, never()).setType(Material.CLAY); } @@ -333,7 +333,7 @@ public class BiomeRecipeTest { Block ab = mock(Block.class); when(ab.getType()).thenReturn(Material.WATER); when(b.getRelative(any())).thenReturn(ab); - br.convertBlock(gh, b); + br.convertBlock(b); verify(b, never()).setType(Material.CLAY); }