From 53a3ae43f342a6e402f291940e9aba056cf0b4f6 Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Sun, 16 Mar 2025 20:37:24 +0100 Subject: [PATCH] test(annotations): New @RequireAnnotation New annotation @RequireAnnotation can be used on annotations so that all classes with that specific annotation must also have another annotation. If this is not true, test will not pass. This annotation takes array of annotations. --- .idea/misc.xml | 5 ++ .../game/annotations/BlockDropPercentage.java | 1 + .../game/annotations/BreakableByWater.java | 1 + .../game/annotations/BreaksByPlace.java | 1 + .../game/annotations/BreaksFalling.java | 1 + .../jzitnik/game/annotations/CustomDrop.java | 1 + .../cz/jzitnik/game/annotations/Fuel.java | 1 + .../game/annotations/PlaceOnSolid.java | 1 + .../annotations/PlaceOnSolidNoHandler.java | 1 + .../game/annotations/RequireAnnotation.java | 9 ++ .../game/annotations/ResetDataOnMine.java | 1 + .../cz/jzitnik/game/annotations/Sapling.java | 1 + .../jzitnik/game/annotations/Smeltable.java | 1 + .../recipes/dyes/MagentaDyeRecipe.java | 2 +- .../game/handlers/place/PlaceHandlerTest.java | 87 ++++++++++--------- 15 files changed, 72 insertions(+), 42 deletions(-) create mode 100644 src/main/java/cz/jzitnik/game/annotations/RequireAnnotation.java diff --git a/.idea/misc.xml b/.idea/misc.xml index e122dea..b08c9c1 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,10 @@ + + + + +