Fixed bad string equality assertion

This commit is contained in:
Marcin Kostrzewski 2020-10-28 16:55:16 +01:00
parent 05af808c9b
commit c016da10fd

View File

@ -1,7 +1,7 @@
package Main;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.*;
public class ProtocolMessageTest {
@ -13,7 +13,7 @@ public class ProtocolMessageTest {
char[] data = messageIn.getRaw();
ProtocolMessage messageOut = new ProtocolMessage(data);
assertEquals(length, messageOut.getLength(), "Length not right.");
assertEquals(msg, messageOut.getMessage(), "Message not right.");
assertArrayEquals(msg, messageOut.getMessage(), "Message not right.");
}
}