SignoutRule créée

This commit is contained in:
Maximilien LEDOUX 2022-02-26 15:07:46 +01:00
parent 0ae4880679
commit ee867c9b1d
3 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,4 @@
package lightcontainer.protocol.rules;
package lightcontainer.protocol.rules.reader;
import lightcontainer.protocol.ProtocolReader;

View File

@ -0,0 +1,14 @@
package lightcontainer.protocol.rules.writer;
import lightcontainer.protocol.ProtocolWriter;
public class SignoutRule extends ProtocolWriter {
private static final String PATTERN = "^SIGNOUT\r\n$";
public static final String NAME = "SIGNOUT";
public SignoutRule() {
super(NAME, PATTERN);
}
}

View File

@ -1,6 +1,7 @@
package lightcontainer.protocol.rules;
import lightcontainer.protocol.ProtocolReader;
import lightcontainer.protocol.rules.reader.HelloRule;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;