@@ -117,38 +117,38 @@ void mergeTwoListsOfKeywordsShouldReturnTheKeywordsMerged() {
117
117
}
118
118
119
119
@ Test
120
- public void parseKeywordWithEscapedDelimiterDoesNotSplitKeyword () {
120
+ void parseKeywordWithEscapedDelimiterDoesNotSplitKeyword () {
121
121
assertEquals (new KeywordList ("keyword,one" , "keywordTwo" ),
122
122
KeywordList .parse ("keyword\\ ,one, keywordTwo" , ',' , '>' ));
123
123
}
124
124
125
125
@ Test
126
- public void parseKeywordWithEscapedDelimiterAtEndPreservesDelimiter () {
126
+ void parseKeywordWithEscapedDelimiterAtEndPreservesDelimiter () {
127
127
assertEquals (new KeywordList ("keywordOne," , "keywordTwo" ),
128
128
KeywordList .parse ("keywordOne\\ ,, keywordTwo" , ',' , '>' ));
129
129
}
130
130
131
131
@ Test
132
- public void parseKeywordWithEscapedBackslashTreatsItAsLiteral () {
132
+ void parseKeywordWithEscapedBackslashTreatsItAsLiteral () {
133
133
assertEquals (new KeywordList ("keyword\\ " , "keywordTwo" ),
134
134
KeywordList .parse ("keyword\\ \\ , keywordTwo" , ',' , '>' ));
135
135
}
136
136
137
137
@ Test
138
- public void parseKeywordWithEscapedDelimiterAndHierarchicalDelimiterCreatesHierarchy () {
138
+ void parseKeywordWithEscapedDelimiterAndHierarchicalDelimiterCreatesHierarchy () {
139
139
Keyword expected = Keyword .of ("keyword,one" , "sub" );
140
140
assertEquals (new KeywordList (expected ),
141
141
KeywordList .parse ("keyword\\ ,one > sub" , ',' , '>' ));
142
142
}
143
143
144
144
@ Test
145
- public void parseKeywordWithMultipleEscapedDelimitersTreatsThemAsLiteral () {
145
+ void parseKeywordWithMultipleEscapedDelimitersTreatsThemAsLiteral () {
146
146
assertEquals (new KeywordList ("one,two,three" , "four" ),
147
147
KeywordList .parse ("one\\ ,two\\ ,three, four" , ',' , '>' ));
148
148
}
149
149
150
150
@ Test
151
- public void parseKeywordWithTrailingEscapeCharacterTreatsItAsLiteralBackslash () {
151
+ void parseKeywordWithTrailingEscapeCharacterTreatsItAsLiteralBackslash () {
152
152
assertEquals (new KeywordList ("keywordOne\\ " ),
153
153
KeywordList .parse ("keywordOne\\ \\ " , ',' , '>' ));
154
154
}
0 commit comments