diff --git a/app/src/test/java/lightcontainer/protocol/rules/HelloRuleTest.java b/app/src/test/java/lightcontainer/protocol/rules/HelloRuleTest.java new file mode 100644 index 0000000..8305c90 --- /dev/null +++ b/app/src/test/java/lightcontainer/protocol/rules/HelloRuleTest.java @@ -0,0 +1,20 @@ +package lightcontainer.protocol.rules; + +import lightcontainer.protocol.ProtocolReader; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class HelloRuleTest { + + @Test + public void whenRuleIsRightThenIsExecute() { + // GIVEN + ProtocolReader protocolReader = new HelloRule(); + String request = "HELLO bento 42890\r\n"; + + // EXPECT + assertTrue(protocolReader.execute(request)); + } + +} \ No newline at end of file