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