From 39d52b15f00f1b46431cf68cfb3c5393e13ca64e Mon Sep 17 00:00:00 2001 From: DieterHolz Date: Mon, 23 Oct 2023 13:46:37 +0200 Subject: [PATCH] TestCase fixed --- src/main/java/module-info.java | 2 +- src/test/java/com/pi4j/catalog/components/JoystickTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 9d27875..0647363 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -28,6 +28,7 @@ // Module Exports exports com.pi4j.catalog; exports com.pi4j.catalog.components; + exports com.pi4j.catalog.components.base; exports com.pi4j.catalog.components.helpers; // Pi4J MODULES @@ -46,5 +47,4 @@ // allow access to classes in the following namespaces for Pi4J annotation processing opens com.pi4j.catalog to info.picocli, com.pi4j; - exports com.pi4j.catalog.components.base; } diff --git a/src/test/java/com/pi4j/catalog/components/JoystickTest.java b/src/test/java/com/pi4j/catalog/components/JoystickTest.java index 2bfd508..424b417 100644 --- a/src/test/java/com/pi4j/catalog/components/JoystickTest.java +++ b/src/test/java/com/pi4j/catalog/components/JoystickTest.java @@ -128,7 +128,8 @@ public void testButtonPush() { assertFalse(joystick.isPushed()); } - @Test void testJoystickWithButton(){ + @Test + public void testJoystickWithButton(){ //given joystick = new Joystick(pi4j, PIN.D5, PIN.D6, PIN.D17, PIN.D16, PIN.D11);