1 /* 2 * Copyright (C) 2008 The Guava Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.google.common.base; 17 public class SplitterTest_gwt extends com.google.gwt.junit.client.GWTTestCase { getModuleName()18@Override public String getModuleName() { 19 return "com.google.common.base.testModule"; 20 } testCharacterSimpleSplit()21public void testCharacterSimpleSplit() throws Exception { 22 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 23 testCase.testCharacterSimpleSplit(); 24 } 25 testCharacterSimpleSplitToList()26public void testCharacterSimpleSplitToList() throws Exception { 27 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 28 testCase.testCharacterSimpleSplitToList(); 29 } 30 testCharacterSimpleSplitWithNoDelimiter()31public void testCharacterSimpleSplitWithNoDelimiter() throws Exception { 32 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 33 testCase.testCharacterSimpleSplitWithNoDelimiter(); 34 } 35 testCharacterSplitEmptyToken()36public void testCharacterSplitEmptyToken() throws Exception { 37 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 38 testCase.testCharacterSplitEmptyToken(); 39 } 40 testCharacterSplitEmptyTokenOmitEmptyStrings()41public void testCharacterSplitEmptyTokenOmitEmptyStrings() throws Exception { 42 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 43 testCase.testCharacterSplitEmptyTokenOmitEmptyStrings(); 44 } 45 testCharacterSplitOnEmptyString()46public void testCharacterSplitOnEmptyString() throws Exception { 47 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 48 testCase.testCharacterSplitOnEmptyString(); 49 } 50 testCharacterSplitOnEmptyStringOmitEmptyStrings()51public void testCharacterSplitOnEmptyStringOmitEmptyStrings() throws Exception { 52 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 53 testCase.testCharacterSplitOnEmptyStringOmitEmptyStrings(); 54 } 55 testCharacterSplitOnOnlyDelimiter()56public void testCharacterSplitOnOnlyDelimiter() throws Exception { 57 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 58 testCase.testCharacterSplitOnOnlyDelimiter(); 59 } 60 testCharacterSplitOnOnlyDelimitersOmitEmptyStrings()61public void testCharacterSplitOnOnlyDelimitersOmitEmptyStrings() throws Exception { 62 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 63 testCase.testCharacterSplitOnOnlyDelimitersOmitEmptyStrings(); 64 } 65 testCharacterSplitWithDoubleDelimiter()66public void testCharacterSplitWithDoubleDelimiter() throws Exception { 67 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 68 testCase.testCharacterSplitWithDoubleDelimiter(); 69 } 70 testCharacterSplitWithDoubleDelimiterAndSpace()71public void testCharacterSplitWithDoubleDelimiterAndSpace() throws Exception { 72 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 73 testCase.testCharacterSplitWithDoubleDelimiterAndSpace(); 74 } 75 testCharacterSplitWithDoubleDelimiterOmitEmptyStrings()76public void testCharacterSplitWithDoubleDelimiterOmitEmptyStrings() throws Exception { 77 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 78 testCase.testCharacterSplitWithDoubleDelimiterOmitEmptyStrings(); 79 } 80 testCharacterSplitWithLeadingDelimiter()81public void testCharacterSplitWithLeadingDelimiter() throws Exception { 82 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 83 testCase.testCharacterSplitWithLeadingDelimiter(); 84 } 85 testCharacterSplitWithMatcherDelimiter()86public void testCharacterSplitWithMatcherDelimiter() throws Exception { 87 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 88 testCase.testCharacterSplitWithMatcherDelimiter(); 89 } 90 testCharacterSplitWithMulitpleLetters()91public void testCharacterSplitWithMulitpleLetters() throws Exception { 92 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 93 testCase.testCharacterSplitWithMulitpleLetters(); 94 } 95 testCharacterSplitWithTrailingDelimiter()96public void testCharacterSplitWithTrailingDelimiter() throws Exception { 97 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 98 testCase.testCharacterSplitWithTrailingDelimiter(); 99 } 100 testCharacterSplitWithTrim()101public void testCharacterSplitWithTrim() throws Exception { 102 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 103 testCase.testCharacterSplitWithTrim(); 104 } 105 testFixedLengthSimpleSplit()106public void testFixedLengthSimpleSplit() throws Exception { 107 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 108 testCase.testFixedLengthSimpleSplit(); 109 } 110 testFixedLengthSplitEmptyString()111public void testFixedLengthSplitEmptyString() throws Exception { 112 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 113 testCase.testFixedLengthSplitEmptyString(); 114 } 115 testFixedLengthSplitEmptyStringWithOmitEmptyStrings()116public void testFixedLengthSplitEmptyStringWithOmitEmptyStrings() throws Exception { 117 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 118 testCase.testFixedLengthSplitEmptyStringWithOmitEmptyStrings(); 119 } 120 testFixedLengthSplitEqualChunkLength()121public void testFixedLengthSplitEqualChunkLength() throws Exception { 122 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 123 testCase.testFixedLengthSplitEqualChunkLength(); 124 } 125 testFixedLengthSplitIntoChars()126public void testFixedLengthSplitIntoChars() throws Exception { 127 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 128 testCase.testFixedLengthSplitIntoChars(); 129 } 130 testFixedLengthSplitNegativeChunkLen()131public void testFixedLengthSplitNegativeChunkLen() throws Exception { 132 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 133 testCase.testFixedLengthSplitNegativeChunkLen(); 134 } 135 testFixedLengthSplitOnlyOneChunk()136public void testFixedLengthSplitOnlyOneChunk() throws Exception { 137 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 138 testCase.testFixedLengthSplitOnlyOneChunk(); 139 } 140 testFixedLengthSplitSmallerString()141public void testFixedLengthSplitSmallerString() throws Exception { 142 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 143 testCase.testFixedLengthSplitSmallerString(); 144 } 145 testFixedLengthSplitZeroChunkLen()146public void testFixedLengthSplitZeroChunkLen() throws Exception { 147 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 148 testCase.testFixedLengthSplitZeroChunkLen(); 149 } 150 testInvalidZeroLimit()151public void testInvalidZeroLimit() throws Exception { 152 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 153 testCase.testInvalidZeroLimit(); 154 } 155 testLimitExtraSeparators()156public void testLimitExtraSeparators() throws Exception { 157 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 158 testCase.testLimitExtraSeparators(); 159 } 160 testLimitExtraSeparatorsOmitEmpty()161public void testLimitExtraSeparatorsOmitEmpty() throws Exception { 162 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 163 testCase.testLimitExtraSeparatorsOmitEmpty(); 164 } 165 testLimitExtraSeparatorsOmitEmpty3()166public void testLimitExtraSeparatorsOmitEmpty3() throws Exception { 167 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 168 testCase.testLimitExtraSeparatorsOmitEmpty3(); 169 } 170 testLimitExtraSeparatorsTrim()171public void testLimitExtraSeparatorsTrim() throws Exception { 172 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 173 testCase.testLimitExtraSeparatorsTrim(); 174 } 175 testLimitExtraSeparatorsTrim1()176public void testLimitExtraSeparatorsTrim1() throws Exception { 177 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 178 testCase.testLimitExtraSeparatorsTrim1(); 179 } 180 testLimitExtraSeparatorsTrim1Empty()181public void testLimitExtraSeparatorsTrim1Empty() throws Exception { 182 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 183 testCase.testLimitExtraSeparatorsTrim1Empty(); 184 } 185 testLimitExtraSeparatorsTrim1EmptyOmit()186public void testLimitExtraSeparatorsTrim1EmptyOmit() throws Exception { 187 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 188 testCase.testLimitExtraSeparatorsTrim1EmptyOmit(); 189 } 190 testLimitExtraSeparatorsTrim1NoOmit()191public void testLimitExtraSeparatorsTrim1NoOmit() throws Exception { 192 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 193 testCase.testLimitExtraSeparatorsTrim1NoOmit(); 194 } 195 testLimitExtraSeparatorsTrim3()196public void testLimitExtraSeparatorsTrim3() throws Exception { 197 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 198 testCase.testLimitExtraSeparatorsTrim3(); 199 } 200 testLimitFixedLength()201public void testLimitFixedLength() throws Exception { 202 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 203 testCase.testLimitFixedLength(); 204 } 205 testLimitLarge()206public void testLimitLarge() throws Exception { 207 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 208 testCase.testLimitLarge(); 209 } 210 testLimitOne()211public void testLimitOne() throws Exception { 212 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 213 testCase.testLimitOne(); 214 } 215 testLimitSeparator()216public void testLimitSeparator() throws Exception { 217 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 218 testCase.testLimitSeparator(); 219 } 220 testMapSplitter_CharacterSeparator()221public void testMapSplitter_CharacterSeparator() throws Exception { 222 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 223 testCase.testMapSplitter_CharacterSeparator(); 224 } 225 testMapSplitter_duplicateKeys()226public void testMapSplitter_duplicateKeys() throws Exception { 227 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 228 testCase.testMapSplitter_duplicateKeys(); 229 } 230 testMapSplitter_emptySeparator()231public void testMapSplitter_emptySeparator() throws Exception { 232 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 233 testCase.testMapSplitter_emptySeparator(); 234 } 235 testMapSplitter_malformedEntry()236public void testMapSplitter_malformedEntry() throws Exception { 237 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 238 testCase.testMapSplitter_malformedEntry(); 239 } 240 testMapSplitter_multiCharacterSeparator()241public void testMapSplitter_multiCharacterSeparator() throws Exception { 242 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 243 testCase.testMapSplitter_multiCharacterSeparator(); 244 } 245 testMapSplitter_notTrimmed()246public void testMapSplitter_notTrimmed() throws Exception { 247 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 248 testCase.testMapSplitter_notTrimmed(); 249 } 250 testMapSplitter_orderedResults()251public void testMapSplitter_orderedResults() throws Exception { 252 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 253 testCase.testMapSplitter_orderedResults(); 254 } 255 testMapSplitter_trimmedBoth()256public void testMapSplitter_trimmedBoth() throws Exception { 257 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 258 testCase.testMapSplitter_trimmedBoth(); 259 } 260 testMapSplitter_trimmedEntries()261public void testMapSplitter_trimmedEntries() throws Exception { 262 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 263 testCase.testMapSplitter_trimmedEntries(); 264 } 265 testMapSplitter_trimmedKeyValue()266public void testMapSplitter_trimmedKeyValue() throws Exception { 267 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 268 testCase.testMapSplitter_trimmedKeyValue(); 269 } 270 testSplitNullString()271public void testSplitNullString() throws Exception { 272 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 273 testCase.testSplitNullString(); 274 } 275 testSplitterIterableIsLazy_char()276public void testSplitterIterableIsLazy_char() throws Exception { 277 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 278 testCase.testSplitterIterableIsLazy_char(); 279 } 280 testSplitterIterableIsLazy_string()281public void testSplitterIterableIsLazy_string() throws Exception { 282 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 283 testCase.testSplitterIterableIsLazy_string(); 284 } 285 testSplitterIterableIsUnmodifiable_char()286public void testSplitterIterableIsUnmodifiable_char() throws Exception { 287 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 288 testCase.testSplitterIterableIsUnmodifiable_char(); 289 } 290 testSplitterIterableIsUnmodifiable_string()291public void testSplitterIterableIsUnmodifiable_string() throws Exception { 292 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 293 testCase.testSplitterIterableIsUnmodifiable_string(); 294 } 295 testStringSimpleSplit()296public void testStringSimpleSplit() throws Exception { 297 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 298 testCase.testStringSimpleSplit(); 299 } 300 testStringSimpleSplitWithNoDelimiter()301public void testStringSimpleSplitWithNoDelimiter() throws Exception { 302 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 303 testCase.testStringSimpleSplitWithNoDelimiter(); 304 } 305 testStringSplitEmptyToken()306public void testStringSplitEmptyToken() throws Exception { 307 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 308 testCase.testStringSplitEmptyToken(); 309 } 310 testStringSplitEmptyTokenOmitEmptyStrings()311public void testStringSplitEmptyTokenOmitEmptyStrings() throws Exception { 312 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 313 testCase.testStringSplitEmptyTokenOmitEmptyStrings(); 314 } 315 testStringSplitOnEmptyString()316public void testStringSplitOnEmptyString() throws Exception { 317 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 318 testCase.testStringSplitOnEmptyString(); 319 } 320 testStringSplitOnEmptyStringOmitEmptyString()321public void testStringSplitOnEmptyStringOmitEmptyString() throws Exception { 322 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 323 testCase.testStringSplitOnEmptyStringOmitEmptyString(); 324 } 325 testStringSplitOnOnlyDelimiter()326public void testStringSplitOnOnlyDelimiter() throws Exception { 327 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 328 testCase.testStringSplitOnOnlyDelimiter(); 329 } 330 testStringSplitOnOnlyDelimitersOmitEmptyStrings()331public void testStringSplitOnOnlyDelimitersOmitEmptyStrings() throws Exception { 332 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 333 testCase.testStringSplitOnOnlyDelimitersOmitEmptyStrings(); 334 } 335 testStringSplitWithDelimiterSubstringInValue()336public void testStringSplitWithDelimiterSubstringInValue() throws Exception { 337 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 338 testCase.testStringSplitWithDelimiterSubstringInValue(); 339 } 340 testStringSplitWithDoubleDelimiter()341public void testStringSplitWithDoubleDelimiter() throws Exception { 342 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 343 testCase.testStringSplitWithDoubleDelimiter(); 344 } 345 testStringSplitWithDoubleDelimiterAndSpace()346public void testStringSplitWithDoubleDelimiterAndSpace() throws Exception { 347 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 348 testCase.testStringSplitWithDoubleDelimiterAndSpace(); 349 } 350 testStringSplitWithDoubleDelimiterOmitEmptyStrings()351public void testStringSplitWithDoubleDelimiterOmitEmptyStrings() throws Exception { 352 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 353 testCase.testStringSplitWithDoubleDelimiterOmitEmptyStrings(); 354 } 355 testStringSplitWithEmptyString()356public void testStringSplitWithEmptyString() throws Exception { 357 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 358 testCase.testStringSplitWithEmptyString(); 359 } 360 testStringSplitWithLeadingDelimiter()361public void testStringSplitWithLeadingDelimiter() throws Exception { 362 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 363 testCase.testStringSplitWithLeadingDelimiter(); 364 } 365 testStringSplitWithLongDelimiter()366public void testStringSplitWithLongDelimiter() throws Exception { 367 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 368 testCase.testStringSplitWithLongDelimiter(); 369 } 370 testStringSplitWithLongLeadingDelimiter()371public void testStringSplitWithLongLeadingDelimiter() throws Exception { 372 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 373 testCase.testStringSplitWithLongLeadingDelimiter(); 374 } 375 testStringSplitWithLongTrailingDelimiter()376public void testStringSplitWithLongTrailingDelimiter() throws Exception { 377 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 378 testCase.testStringSplitWithLongTrailingDelimiter(); 379 } 380 testStringSplitWithMultipleLetters()381public void testStringSplitWithMultipleLetters() throws Exception { 382 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 383 testCase.testStringSplitWithMultipleLetters(); 384 } 385 testStringSplitWithTrailingDelimiter()386public void testStringSplitWithTrailingDelimiter() throws Exception { 387 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 388 testCase.testStringSplitWithTrailingDelimiter(); 389 } 390 testStringSplitWithTrim()391public void testStringSplitWithTrim() throws Exception { 392 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 393 testCase.testStringSplitWithTrim(); 394 } 395 testToString()396public void testToString() throws Exception { 397 com.google.common.base.SplitterTest testCase = new com.google.common.base.SplitterTest(); 398 testCase.testToString(); 399 } 400 } 401