SignoutRule créée
This commit is contained in:
parent
0ae4880679
commit
ee867c9b1d
@ -1,4 +1,4 @@
|
|||||||
package lightcontainer.protocol.rules;
|
package lightcontainer.protocol.rules.reader;
|
||||||
|
|
||||||
import lightcontainer.protocol.ProtocolReader;
|
import lightcontainer.protocol.ProtocolReader;
|
||||||
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package lightcontainer.protocol.rules;
|
package lightcontainer.protocol.rules;
|
||||||
|
|
||||||
import lightcontainer.protocol.ProtocolReader;
|
import lightcontainer.protocol.ProtocolReader;
|
||||||
|
import lightcontainer.protocol.rules.reader.HelloRule;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
Loading…
Reference in New Issue
Block a user