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 OptionalTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 @Override public String getModuleName() { 19 return "com.google.common.base.testModule"; 20 } 21 public void testAbsent() throws Exception { 22 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 23 testCase.testAbsent(); 24 } 25 26 public void testAsSet_absent() throws Exception { 27 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 28 testCase.testAsSet_absent(); 29 } 30 31 public void testAsSet_absentIsImmutable() throws Exception { 32 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 33 testCase.testAsSet_absentIsImmutable(); 34 } 35 36 public void testAsSet_present() throws Exception { 37 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 38 testCase.testAsSet_present(); 39 } 40 41 public void testAsSet_presentIsImmutable() throws Exception { 42 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 43 testCase.testAsSet_presentIsImmutable(); 44 } 45 46 public void testEqualsAndHashCode_absent() throws Exception { 47 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 48 testCase.testEqualsAndHashCode_absent(); 49 } 50 51 public void testEqualsAndHashCode_present() throws Exception { 52 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 53 testCase.testEqualsAndHashCode_present(); 54 } 55 56 public void testFromNullable() throws Exception { 57 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 58 testCase.testFromNullable(); 59 } 60 61 public void testFromNullable_null() throws Exception { 62 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 63 testCase.testFromNullable_null(); 64 } 65 66 public void testGet_absent() throws Exception { 67 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 68 testCase.testGet_absent(); 69 } 70 71 public void testGet_present() throws Exception { 72 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 73 testCase.testGet_present(); 74 } 75 76 public void testIsPresent_no() throws Exception { 77 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 78 testCase.testIsPresent_no(); 79 } 80 81 public void testIsPresent_yes() throws Exception { 82 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 83 testCase.testIsPresent_yes(); 84 } 85 86 public void testOf() throws Exception { 87 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 88 testCase.testOf(); 89 } 90 91 public void testOf_null() throws Exception { 92 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 93 testCase.testOf_null(); 94 } 95 96 public void testOrNull_absent() throws Exception { 97 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 98 testCase.testOrNull_absent(); 99 } 100 101 public void testOrNull_present() throws Exception { 102 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 103 testCase.testOrNull_present(); 104 } 105 106 public void testOr_Optional_absent() throws Exception { 107 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 108 testCase.testOr_Optional_absent(); 109 } 110 111 public void testOr_Optional_present() throws Exception { 112 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 113 testCase.testOr_Optional_present(); 114 } 115 116 public void testOr_T_absent() throws Exception { 117 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 118 testCase.testOr_T_absent(); 119 } 120 121 public void testOr_T_present() throws Exception { 122 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 123 testCase.testOr_T_present(); 124 } 125 126 public void testOr_nullSupplier_absent() throws Exception { 127 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 128 testCase.testOr_nullSupplier_absent(); 129 } 130 131 public void testOr_nullSupplier_present() throws Exception { 132 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 133 testCase.testOr_nullSupplier_present(); 134 } 135 136 public void testOr_supplier_absent() throws Exception { 137 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 138 testCase.testOr_supplier_absent(); 139 } 140 141 public void testOr_supplier_present() throws Exception { 142 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 143 testCase.testOr_supplier_present(); 144 } 145 146 public void testPresentInstances_allAbsent() throws Exception { 147 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 148 testCase.testPresentInstances_allAbsent(); 149 } 150 151 public void testPresentInstances_allPresent() throws Exception { 152 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 153 testCase.testPresentInstances_allPresent(); 154 } 155 156 public void testPresentInstances_callingIteratorTwice() throws Exception { 157 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 158 testCase.testPresentInstances_callingIteratorTwice(); 159 } 160 161 public void testPresentInstances_somePresent() throws Exception { 162 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 163 testCase.testPresentInstances_somePresent(); 164 } 165 166 public void testPresentInstances_wildcards() throws Exception { 167 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 168 testCase.testPresentInstances_wildcards(); 169 } 170 171 public void testSampleCodeError1() throws Exception { 172 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 173 testCase.testSampleCodeError1(); 174 } 175 176 public void testSampleCodeError2() throws Exception { 177 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 178 testCase.testSampleCodeError2(); 179 } 180 181 public void testSampleCodeFine1() throws Exception { 182 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 183 testCase.testSampleCodeFine1(); 184 } 185 186 public void testSampleCodeFine2() throws Exception { 187 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 188 testCase.testSampleCodeFine2(); 189 } 190 191 public void testToString_absent() throws Exception { 192 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 193 testCase.testToString_absent(); 194 } 195 196 public void testToString_present() throws Exception { 197 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 198 testCase.testToString_present(); 199 } 200 201 public void testTransform_absent() throws Exception { 202 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 203 testCase.testTransform_absent(); 204 } 205 206 public void testTransform_abssent_functionReturnsNull() throws Exception { 207 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 208 testCase.testTransform_abssent_functionReturnsNull(); 209 } 210 211 public void testTransform_presentIdentity() throws Exception { 212 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 213 testCase.testTransform_presentIdentity(); 214 } 215 216 public void testTransform_presentToString() throws Exception { 217 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 218 testCase.testTransform_presentToString(); 219 } 220 221 public void testTransform_present_functionReturnsNull() throws Exception { 222 com.google.common.base.OptionalTest testCase = new com.google.common.base.OptionalTest(); 223 testCase.testTransform_present_functionReturnsNull(); 224 } 225 } 226