Migrate tests to JUnit 5 (#8519)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -12,9 +12,10 @@
|
||||
*/
|
||||
package org.openhab.binding.bluetooth.am43;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.openhab.binding.bluetooth.am43.internal.command.ControlCommand;
|
||||
import org.openhab.binding.bluetooth.am43.internal.command.GetAllCommand;
|
||||
import org.openhab.binding.bluetooth.am43.internal.data.ControlAction;
|
||||
@@ -31,7 +32,7 @@ public class CommandTest {
|
||||
public void findAllCommandTest() {
|
||||
byte[] expected = HexUtils.hexToBytes("00ff00009aa701013d");
|
||||
byte[] actual = new GetAllCommand().getRequest();
|
||||
Assert.assertArrayEquals(expected, actual);
|
||||
assertArrayEquals(expected, actual);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -39,7 +40,7 @@ public class CommandTest {
|
||||
byte[] expected = HexUtils.hexToBytes("00ff00009a0a01cc5d");
|
||||
byte[] actual = new ControlCommand(ControlAction.STOP).getRequest();
|
||||
|
||||
Assert.assertArrayEquals(expected, actual);
|
||||
assertArrayEquals(expected, actual);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -47,6 +48,6 @@ public class CommandTest {
|
||||
byte[] expected = HexUtils.hexToBytes("00ff00009a0a01dd4c");
|
||||
byte[] actual = new ControlCommand(ControlAction.OPEN).getRequest();
|
||||
|
||||
Assert.assertArrayEquals(expected, actual);
|
||||
assertArrayEquals(expected, actual);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user