#include "test_command.h" #include "Command.h" #include void TestCommand::prepareCommand() { //given //Command class //when QByteArray actualResult = Command::getByteRepresentation("EXISTS testkey:test"); //then QCOMPARE(actualResult, QByteArray("*2\r\n$6\r\nEXISTS\r\n$12\r\ntestkey:test\r\n")); }