Remove JUnit 4 dependencies (#17580)

Using JUnit 5 should suffice.

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Wouter Born 2024-10-17 07:28:00 +02:00 committed by Ciprian Pascu
parent 61483d9944
commit 756ad0232a
7 changed files with 5 additions and 19 deletions

View File

@ -14,12 +14,4 @@
<name>openHAB Add-ons :: Bundles :: Broadlink Binding</name> <name>openHAB Add-ons :: Bundles :: Broadlink Binding</name>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13</version>
<scope>test</scope>
</dependency>
</dependencies>
</project> </project>

View File

@ -12,8 +12,8 @@
*/ */
package org.openhab.binding.broadlink.internal.handler; package org.openhab.binding.broadlink.internal.handler;
import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import static org.openhab.binding.broadlink.internal.BroadlinkBindingConstants.*; import static org.openhab.binding.broadlink.internal.BroadlinkBindingConstants.*;

View File

@ -12,8 +12,8 @@
*/ */
package org.openhab.binding.broadlink.internal.handler; package org.openhab.binding.broadlink.internal.handler;
import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import java.io.IOException; import java.io.IOException;

View File

@ -12,8 +12,8 @@
*/ */
package org.openhab.binding.broadlink.internal.handler; package org.openhab.binding.broadlink.internal.handler;
import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import static org.openhab.binding.broadlink.internal.BroadlinkBindingConstants.*; import static org.openhab.binding.broadlink.internal.BroadlinkBindingConstants.*;

View File

@ -12,8 +12,8 @@
*/ */
package org.openhab.binding.broadlink.internal.handler; package org.openhab.binding.broadlink.internal.handler;
import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import static org.openhab.binding.broadlink.internal.BroadlinkBindingConstants.*; import static org.openhab.binding.broadlink.internal.BroadlinkBindingConstants.*;
import static org.openhab.binding.broadlink.internal.handler.BroadlinkSocketModel3Handler.mergeOnOffBits; import static org.openhab.binding.broadlink.internal.handler.BroadlinkSocketModel3Handler.mergeOnOffBits;

View File

@ -12,8 +12,8 @@
*/ */
package org.openhab.binding.broadlink.internal.handler; package org.openhab.binding.broadlink.internal.handler;
import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import static org.openhab.binding.broadlink.internal.BroadlinkBindingConstants.*; import static org.openhab.binding.broadlink.internal.BroadlinkBindingConstants.*;

View File

@ -25,12 +25,6 @@
<version>${jsoup.version}</version> <version>${jsoup.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>