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