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 ImmutableSetTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 @Override public String getModuleName() { 19 return "com.google.common.collect.testModule"; 20 } 21 public void testBuilderAddAll() throws Exception { 22 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 23 testCase.testBuilderAddAll(); 24 } 25 26 public void testBuilderAddAllHandlesNullsCorrectly() throws Exception { 27 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 28 testCase.testBuilderAddAllHandlesNullsCorrectly(); 29 } 30 31 public void testBuilderAddHandlesNullsCorrectly() throws Exception { 32 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 33 testCase.testBuilderAddHandlesNullsCorrectly(); 34 } 35 36 public void testBuilderWithDuplicateElements() throws Exception { 37 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 38 testCase.testBuilderWithDuplicateElements(); 39 } 40 41 public void testBuilderWithNonDuplicateElements() throws Exception { 42 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 43 testCase.testBuilderWithNonDuplicateElements(); 44 } 45 46 public void testComplexBuilder() throws Exception { 47 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 48 testCase.testComplexBuilder(); 49 } 50 51 public void testContainsAll_sameType() throws Exception { 52 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 53 testCase.testContainsAll_sameType(); 54 } 55 56 public void testCopyOf_arrayContainingOnlyNull() throws Exception { 57 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 58 testCase.testCopyOf_arrayContainingOnlyNull(); 59 } 60 61 public void testCopyOf_arrayOfOneElement() throws Exception { 62 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 63 testCase.testCopyOf_arrayOfOneElement(); 64 } 65 66 public void testCopyOf_collectionContainingNull() throws Exception { 67 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 68 testCase.testCopyOf_collectionContainingNull(); 69 } 70 71 public void testCopyOf_collection_empty() throws Exception { 72 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 73 testCase.testCopyOf_collection_empty(); 74 } 75 76 public void testCopyOf_collection_general() throws Exception { 77 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 78 testCase.testCopyOf_collection_general(); 79 } 80 81 public void testCopyOf_collection_oneElement() throws Exception { 82 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 83 testCase.testCopyOf_collection_oneElement(); 84 } 85 86 public void testCopyOf_collection_oneElementRepeated() throws Exception { 87 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 88 testCase.testCopyOf_collection_oneElementRepeated(); 89 } 90 91 public void testCopyOf_copiesImmutableSortedSet() throws Exception { 92 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 93 testCase.testCopyOf_copiesImmutableSortedSet(); 94 } 95 96 public void testCopyOf_emptyArray() throws Exception { 97 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 98 testCase.testCopyOf_emptyArray(); 99 } 100 101 public void testCopyOf_iteratorContainingNull() throws Exception { 102 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 103 testCase.testCopyOf_iteratorContainingNull(); 104 } 105 106 public void testCopyOf_iterator_empty() throws Exception { 107 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 108 testCase.testCopyOf_iterator_empty(); 109 } 110 111 public void testCopyOf_iterator_general() throws Exception { 112 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 113 testCase.testCopyOf_iterator_general(); 114 } 115 116 public void testCopyOf_iterator_oneElement() throws Exception { 117 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 118 testCase.testCopyOf_iterator_oneElement(); 119 } 120 121 public void testCopyOf_iterator_oneElementRepeated() throws Exception { 122 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 123 testCase.testCopyOf_iterator_oneElementRepeated(); 124 } 125 126 public void testCopyOf_nullArray() throws Exception { 127 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 128 testCase.testCopyOf_nullArray(); 129 } 130 131 public void testCopyOf_plainIterable() throws Exception { 132 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 133 testCase.testCopyOf_plainIterable(); 134 } 135 136 public void testCopyOf_plainIterable_iteratesOnce() throws Exception { 137 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 138 testCase.testCopyOf_plainIterable_iteratesOnce(); 139 } 140 141 public void testCopyOf_shortcut_empty() throws Exception { 142 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 143 testCase.testCopyOf_shortcut_empty(); 144 } 145 146 public void testCopyOf_shortcut_sameType() throws Exception { 147 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 148 testCase.testCopyOf_shortcut_sameType(); 149 } 150 151 public void testCopyOf_shortcut_singleton() throws Exception { 152 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 153 testCase.testCopyOf_shortcut_singleton(); 154 } 155 156 public void testCreation_allDuplicates() throws Exception { 157 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 158 testCase.testCreation_allDuplicates(); 159 } 160 161 public void testCreation_arrayOfArray() throws Exception { 162 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 163 testCase.testCreation_arrayOfArray(); 164 } 165 166 public void testCreation_eightElements() throws Exception { 167 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 168 testCase.testCreation_eightElements(); 169 } 170 171 public void testCreation_fiveElements() throws Exception { 172 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 173 testCase.testCreation_fiveElements(); 174 } 175 176 public void testCreation_fourElements() throws Exception { 177 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 178 testCase.testCreation_fourElements(); 179 } 180 181 public void testCreation_manyDuplicates() throws Exception { 182 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 183 testCase.testCreation_manyDuplicates(); 184 } 185 186 public void testCreation_noArgs() throws Exception { 187 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 188 testCase.testCreation_noArgs(); 189 } 190 191 public void testCreation_oneDuplicate() throws Exception { 192 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 193 testCase.testCreation_oneDuplicate(); 194 } 195 196 public void testCreation_oneElement() throws Exception { 197 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 198 testCase.testCreation_oneElement(); 199 } 200 201 public void testCreation_sevenElements() throws Exception { 202 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 203 testCase.testCreation_sevenElements(); 204 } 205 206 public void testCreation_sixElements() throws Exception { 207 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 208 testCase.testCreation_sixElements(); 209 } 210 211 public void testCreation_threeElements() throws Exception { 212 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 213 testCase.testCreation_threeElements(); 214 } 215 216 public void testCreation_twoElements() throws Exception { 217 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 218 testCase.testCreation_twoElements(); 219 } 220 221 public void testEquals() throws Exception { 222 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 223 testCase.testEquals(); 224 } 225 226 public void testEquals_sameType() throws Exception { 227 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 228 testCase.testEquals_sameType(); 229 } 230 231 public void testReuseBuilderWithDuplicateElements() throws Exception { 232 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 233 testCase.testReuseBuilderWithDuplicateElements(); 234 } 235 236 public void testReuseBuilderWithNonDuplicateElements() throws Exception { 237 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 238 testCase.testReuseBuilderWithNonDuplicateElements(); 239 } 240 241 public void testToString() throws Exception { 242 com.google.common.collect.ImmutableSetTest testCase = new com.google.common.collect.ImmutableSetTest(); 243 testCase.testToString(); 244 } 245 } 246