Crossfire JXClient, Trunk
|
Classes | |
class | Rec |
Public Member Functions | |
void | testAttributes1 () |
void | testAttributes2 () |
void | testAttributesColor () |
void | testAttributesFont1 () |
void | testAttributesFont2 () |
void | testAttributesIgnore () |
void | testAttributesReset () |
void | testDropUnClosedTag () |
void | testEmpty () |
void | testMultiLine () |
Regression tests for Parser.
Definition at line 35 of file ParserTest.java.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testAttributes1 | ( | ) |
Checks that attributes are correctly parsed.
Definition at line 61 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testAttributes2 | ( | ) |
Checks that attributes are correctly parsed.
Definition at line 121 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testAttributesColor | ( | ) |
Checks that color attributes are correctly parsed.
Definition at line 181 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testAttributesFont1 | ( | ) |
Checks that font attributes are correctly parsed.
Definition at line 148 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testAttributesFont2 | ( | ) |
Checks that font attributes are correctly parsed: [/fixed] is undefined/does not end [fixed] block.
Definition at line 167 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testAttributesIgnore | ( | ) |
Checks that unknown attributes are ignored.
Definition at line 51 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testAttributesReset | ( | ) |
Checks that attributes are reset for each message.
Definition at line 199 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testDropUnClosedTag | ( | ) |
Checks that an un-closed tag is dropped.
Definition at line 235 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testEmpty | ( | ) |
Checks that an empty string does not add anything.
Definition at line 41 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.
void com.realtime.crossfire.jxclient.gui.log.ParserTest.testMultiLine | ( | ) |
Checks that multi-line messages are correctly parsed.
Definition at line 215 of file ParserTest.java.
References com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.buffer, com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.checkResult(), com.realtime.crossfire.jxclient.protocol.MessageType.MSG_SUBTYPE_BOOK_CLASP_1, com.realtime.crossfire.jxclient.protocol.MessageType.MSG_TYPE_BOOK, com.realtime.crossfire.jxclient.gui.log.Parser.parse(), and com.realtime.crossfire.jxclient.gui.log.ParserTest.Rec.parser.