Skip to content

Commit f85b114

Browse files
Minor fixes
Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
1 parent b9138cb commit f85b114

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

kura/test/org.eclipse.kura.linux.gpio.libgpiod.test/src/test/java/org/eclipse/kura/linux/gpio/libgpiod1/LibGpiodV1GPIOServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void setup() throws IOException {
6060
this.nativeInterfaceMock = mock(LibGpiodV1Native.class);
6161
this.nativeMock.when(() -> Native.load("gpiod", LibGpiodV1Native.class)).thenReturn(this.nativeInterfaceMock);
6262
this.nativeInterfaceWrapperMock = mockStatic(LibGpiodV1NativeWrapper.class);
63-
this.nativeInterfaceWrapperMock.when(() -> LibGpiodV1NativeWrapper.getInstance())
63+
this.nativeInterfaceWrapperMock.when(LibGpiodV1NativeWrapper::getInstance)
6464
.thenReturn(this.nativeInterfaceMock);
6565

6666
Pointer chip0 = Pointer.createConstant(0);

kura/test/org.eclipse.kura.linux.gpio.libgpiod.test/src/test/java/org/eclipse/kura/linux/gpio/libgpiod1/LibGpiodV1PinTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import org.mockito.ArgumentMatcher;
4141
import org.mockito.MockedStatic;
4242

43-
import com.sun.jna.Memory;
4443
import com.sun.jna.Native;
4544
import com.sun.jna.Pointer;
4645

0 commit comments

Comments
 (0)