only: reducing junit4
This commit is contained in:
parent
f9726315f9
commit
0a45e6c507
|
@ -2,9 +2,10 @@ package com.rusefi;
|
|||
|
||||
import com.rusefi.core.RusEfiSignature;
|
||||
import com.rusefi.core.SignatureHelper;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class SignatureHelperTest {
|
||||
@Test
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package com.rusefi.binaryprotocol.test;
|
||||
|
||||
import com.rusefi.binaryprotocol.IoHelper;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
/**
|
||||
* Andrey Belomutskiy, (c) 2013-2020
|
||||
|
@ -30,7 +30,8 @@ public class CRCTest {
|
|||
byte[] command = {'S'};
|
||||
byte[] expected = {0, 1, 0x53, 0x20, 0x60, -17, -61};
|
||||
byte[] actual = IoHelper.makeCrc32Packet(command);
|
||||
assertTrue(Arrays.toString(expected) + " vs " + Arrays.toString(actual),
|
||||
Arrays.equals(expected, actual));
|
||||
Assertions.assertTrue(Arrays.equals(expected, actual),
|
||||
Arrays.toString(expected) + " vs " + Arrays.toString(actual)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
package com.rusefi.binaryprotocol.test;
|
||||
|
||||
import com.rusefi.binaryprotocol.IoHelper;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class IoHelperTest {
|
||||
@Test
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.rusefi.io.can.elm.Elm327Connector;
|
|||
import com.rusefi.util.HexBinary;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class Elm327ConnectorTest {
|
||||
@Test
|
||||
|
|
|
@ -3,12 +3,13 @@ package com.rusefi.io.can;
|
|||
import com.rusefi.config.generated.Fields;
|
||||
import com.rusefi.io.can.isotp.IsoTpConnector;
|
||||
import com.rusefi.util.HexBinary;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class IsoTpConnectorTest {
|
||||
@Test
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
package com.rusefi.io.serial;
|
||||
|
||||
import com.rusefi.Timeouts;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
|
||||
public class RateCounterTest {
|
||||
@Test
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.rusefi.config.generated.TsOutputs;
|
|||
import com.rusefi.enums.live_data_e;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class StateDictionaryTest {
|
||||
@Test
|
||||
|
|
|
@ -2,12 +2,11 @@ package com.rusefi.test;
|
|||
|
||||
import com.opensr5.ConfigurationImage;
|
||||
import com.rusefi.core.Pair;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static com.rusefi.ConfigurationImageDiff.findDifferences;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
/**
|
||||
* Andrey Belomutskiy, (c) 2013-2020
|
||||
|
|
|
@ -5,10 +5,10 @@ import com.rusefi.binaryprotocol.IoHelper;
|
|||
import com.rusefi.config.generated.Fields;
|
||||
import com.rusefi.io.commands.GetOutputsCommand;
|
||||
//import org.apache.commons.codec.binary.Hex;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.Assert.assertArrayEquals;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
public class OchGetCommandTest {
|
||||
@Test
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
package com.rusefi.uds;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class SeedKeyTest {
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue