mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-21 23:53:36 +00:00
Improve ChatMsg and fix LoginRespMessage
This commit is contained in:
parent
38715c0d04
commit
cb2507360e
4 changed files with 36 additions and 12 deletions
|
|
@ -5,7 +5,7 @@ import net.psforever.crypto.CryptoInterface
|
|||
import net.psforever.crypto.CryptoInterface.CryptoDHState
|
||||
import scodec.bits._
|
||||
|
||||
class CryptoInterfaceTest extends Specification {
|
||||
class CryptoInterfaceTest extends Specification { args(stopOnFail = true)
|
||||
"Crypto interface" should {
|
||||
"correctly initialize" in {
|
||||
CryptoInterface.initialize()
|
||||
|
|
|
|||
|
|
@ -206,6 +206,15 @@ class GamePacketTest extends Specification {
|
|||
|
||||
pkt_tell mustEqual string_tell
|
||||
}
|
||||
|
||||
"allow and disallow note" in {
|
||||
ChatMsg(ChatMessageType.CMT_ARMOR,
|
||||
false,
|
||||
"DontCare", "DontCare", Some("Should be here")) must throwA[AssertionError]
|
||||
ChatMsg(ChatMessageType.CMT_NOTE,
|
||||
false,
|
||||
"DontCare", "DontCare", None) must throwA[AssertionError]
|
||||
}
|
||||
}
|
||||
|
||||
"ChangeFireModeMessage" should {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue