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.collect; 17 public class ListsTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 @Override public String getModuleName() { 19 return "com.google.common.collect.testModule"; 20 } 21 public void testArraysAsList() throws Exception { 22 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 23 testCase.testArraysAsList(); 24 } 25 26 public void testAsList1Small() throws Exception { 27 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 28 testCase.testAsList1Small(); 29 } 30 31 public void testAsList2() throws Exception { 32 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 33 testCase.testAsList2(); 34 } 35 36 public void testCartesianProductTooBig() throws Exception { 37 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 38 testCase.testCartesianProductTooBig(); 39 } 40 41 public void testCartesianProduct_2x2x2() throws Exception { 42 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 43 testCase.testCartesianProduct_2x2x2(); 44 } 45 46 public void testCartesianProduct_binary1x1() throws Exception { 47 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 48 testCase.testCartesianProduct_binary1x1(); 49 } 50 51 public void testCartesianProduct_binary1x2() throws Exception { 52 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 53 testCase.testCartesianProduct_binary1x2(); 54 } 55 56 public void testCartesianProduct_binary2x2() throws Exception { 57 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 58 testCase.testCartesianProduct_binary2x2(); 59 } 60 61 public void testCartesianProduct_contains() throws Exception { 62 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 63 testCase.testCartesianProduct_contains(); 64 } 65 66 public void testCartesianProduct_unrelatedTypes() throws Exception { 67 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 68 testCase.testCartesianProduct_unrelatedTypes(); 69 } 70 71 public void testCharactersOfIsView() throws Exception { 72 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 73 testCase.testCharactersOfIsView(); 74 } 75 76 public void testComputeArrayListCapacity() throws Exception { 77 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 78 testCase.testComputeArrayListCapacity(); 79 } 80 81 public void testNewArrayListEmpty() throws Exception { 82 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 83 testCase.testNewArrayListEmpty(); 84 } 85 86 public void testNewArrayListFromCollection() throws Exception { 87 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 88 testCase.testNewArrayListFromCollection(); 89 } 90 91 public void testNewArrayListFromIterable() throws Exception { 92 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 93 testCase.testNewArrayListFromIterable(); 94 } 95 96 public void testNewArrayListFromIterator() throws Exception { 97 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 98 testCase.testNewArrayListFromIterator(); 99 } 100 101 public void testNewArrayListVarArgs() throws Exception { 102 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 103 testCase.testNewArrayListVarArgs(); 104 } 105 106 public void testNewArrayListWithCapacity() throws Exception { 107 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 108 testCase.testNewArrayListWithCapacity(); 109 } 110 111 public void testNewArrayListWithCapacity_negative() throws Exception { 112 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 113 testCase.testNewArrayListWithCapacity_negative(); 114 } 115 116 public void testNewArrayListWithExpectedSize() throws Exception { 117 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 118 testCase.testNewArrayListWithExpectedSize(); 119 } 120 121 public void testNewArrayListWithExpectedSize_negative() throws Exception { 122 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 123 testCase.testNewArrayListWithExpectedSize_negative(); 124 } 125 126 public void testNewLinkedListEmpty() throws Exception { 127 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 128 testCase.testNewLinkedListEmpty(); 129 } 130 131 public void testNewLinkedListFromCollection() throws Exception { 132 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 133 testCase.testNewLinkedListFromCollection(); 134 } 135 136 public void testNewLinkedListFromIterable() throws Exception { 137 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 138 testCase.testNewLinkedListFromIterable(); 139 } 140 141 public void testPartitionRandomAccessFalse() throws Exception { 142 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 143 testCase.testPartitionRandomAccessFalse(); 144 } 145 146 public void testPartitionSize_1() throws Exception { 147 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 148 testCase.testPartitionSize_1(); 149 } 150 151 public void testPartition_1_1() throws Exception { 152 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 153 testCase.testPartition_1_1(); 154 } 155 156 public void testPartition_1_2() throws Exception { 157 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 158 testCase.testPartition_1_2(); 159 } 160 161 public void testPartition_2_1() throws Exception { 162 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 163 testCase.testPartition_2_1(); 164 } 165 166 public void testPartition_3_2() throws Exception { 167 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 168 testCase.testPartition_3_2(); 169 } 170 171 public void testPartition_badSize() throws Exception { 172 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 173 testCase.testPartition_badSize(); 174 } 175 176 public void testPartition_empty() throws Exception { 177 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 178 testCase.testPartition_empty(); 179 } 180 181 public void testPartition_view() throws Exception { 182 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 183 testCase.testPartition_view(); 184 } 185 186 public void testReverseViewRandomAccess() throws Exception { 187 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 188 testCase.testReverseViewRandomAccess(); 189 } 190 191 public void testReverseViewSequential() throws Exception { 192 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 193 testCase.testReverseViewSequential(); 194 } 195 196 public void testTransformHashCodeRandomAccess() throws Exception { 197 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 198 testCase.testTransformHashCodeRandomAccess(); 199 } 200 201 public void testTransformHashCodeSequential() throws Exception { 202 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 203 testCase.testTransformHashCodeSequential(); 204 } 205 206 public void testTransformIteratorRandomAccess() throws Exception { 207 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 208 testCase.testTransformIteratorRandomAccess(); 209 } 210 211 public void testTransformIteratorSequential() throws Exception { 212 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 213 testCase.testTransformIteratorSequential(); 214 } 215 216 public void testTransformListIteratorRandomAccess() throws Exception { 217 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 218 testCase.testTransformListIteratorRandomAccess(); 219 } 220 221 public void testTransformListIteratorSequential() throws Exception { 222 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 223 testCase.testTransformListIteratorSequential(); 224 } 225 226 public void testTransformModifiableRandomAccess() throws Exception { 227 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 228 testCase.testTransformModifiableRandomAccess(); 229 } 230 231 public void testTransformModifiableSequential() throws Exception { 232 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 233 testCase.testTransformModifiableSequential(); 234 } 235 236 public void testTransformPreservesIOOBEsThrownByFunction() throws Exception { 237 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 238 testCase.testTransformPreservesIOOBEsThrownByFunction(); 239 } 240 241 public void testTransformRandomAccess() throws Exception { 242 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 243 testCase.testTransformRandomAccess(); 244 } 245 246 public void testTransformSequential() throws Exception { 247 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 248 testCase.testTransformSequential(); 249 } 250 251 public void testTransformViewRandomAccess() throws Exception { 252 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 253 testCase.testTransformViewRandomAccess(); 254 } 255 256 public void testTransformViewSequential() throws Exception { 257 com.google.common.collect.ListsTest testCase = new com.google.common.collect.ListsTest(); 258 testCase.testTransformViewSequential(); 259 } 260 } 261