1 /* 2 * Copyright (c) 2007 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 package org.mockitousage; 6 7 import java.io.IOException; 8 import java.nio.charset.CharacterCodingException; 9 import java.util.*; 10 11 public class MethodsImpl implements IMethods { booleanReturningMethod()12 public boolean booleanReturningMethod() { 13 return false; 14 } 15 booleanObjectReturningMethod()16 public Boolean booleanObjectReturningMethod() { 17 return null; 18 } 19 byteReturningMethod()20 public byte byteReturningMethod() { 21 return 0; 22 } 23 byteObjectReturningMethod()24 public Byte byteObjectReturningMethod() { 25 return null; 26 } 27 shortReturningMethod()28 public short shortReturningMethod() { 29 return 0; 30 } 31 shortObjectReturningMethod()32 public Short shortObjectReturningMethod() { 33 return null; 34 } 35 charReturningMethod()36 public char charReturningMethod() { 37 return 0; 38 } 39 charObjectReturningMethod()40 public Character charObjectReturningMethod() { 41 return null; 42 } 43 intReturningMethod()44 public int intReturningMethod() { 45 return 0; 46 } 47 integerReturningMethod()48 public Integer integerReturningMethod() { 49 return null; 50 } 51 longReturningMethod()52 public long longReturningMethod() { 53 return 0; 54 } 55 longObjectReturningMethod()56 public Long longObjectReturningMethod() { 57 return null; 58 } 59 floatReturningMethod()60 public float floatReturningMethod() { 61 return 0; 62 } 63 floatObjectReturningMethod()64 public Float floatObjectReturningMethod() { 65 return null; 66 } 67 doubleReturningMethod()68 public double doubleReturningMethod() { 69 return 0; 70 } 71 doubleObjectReturningMethod()72 public Double doubleObjectReturningMethod() { 73 return null; 74 } 75 objectReturningMethod(Object... objects)76 public Object objectReturningMethod(Object... objects) { 77 return null; 78 } 79 objectReturningMethodNoArgs()80 public Object objectReturningMethodNoArgs() { 81 return null; 82 } 83 oneArg(boolean value)84 public String oneArg(boolean value) { 85 return null; 86 } 87 oneArg(Boolean value)88 public String oneArg(Boolean value) { 89 return null; 90 } 91 forBoolean(Boolean value)92 public String forBoolean(Boolean value) { 93 return null; 94 } 95 oneArg(byte value)96 public String oneArg(byte value) { 97 return null; 98 } 99 oneArg(Byte value)100 public String oneArg(Byte value) { 101 return null; 102 } 103 forByte(Byte value)104 public String forByte(Byte value) { 105 return null; 106 } 107 oneArg(short value)108 public String oneArg(short value) { 109 return null; 110 } 111 oneArg(Short value)112 public String oneArg(Short value) { 113 return null; 114 } 115 forShort(Short value)116 public String forShort(Short value) { 117 return null; 118 } 119 oneArg(char value)120 public String oneArg(char value) { 121 return null; 122 } 123 oneArg(Character value)124 public String oneArg(Character value) { 125 return null; 126 } 127 forCharacter(Character value)128 public String forCharacter(Character value) { 129 return null; 130 } 131 oneArg(int value)132 public String oneArg(int value) { 133 return null; 134 } 135 oneArg(Integer value)136 public String oneArg(Integer value) { 137 return null; 138 } 139 forInteger(Integer value)140 public String forInteger(Integer value) { 141 return null; 142 } 143 oneArg(long value)144 public String oneArg(long value) { 145 return null; 146 } 147 oneArg(Long value)148 public String oneArg(Long value) { 149 return null; 150 } 151 forLong(Long value)152 public String forLong(Long value) { 153 return null; 154 } 155 oneArg(float value)156 public String oneArg(float value) { 157 return null; 158 } 159 oneArg(Float value)160 public String oneArg(Float value) { 161 return null; 162 } 163 forFloat(Float value)164 public String forFloat(Float value) { 165 return null; 166 } 167 oneArg(double value)168 public String oneArg(double value) { 169 return null; 170 } 171 oneArg(Double value)172 public String oneArg(Double value) { 173 return null; 174 } 175 forDouble(Double value)176 public String forDouble(Double value) { 177 return null; 178 } 179 oneArg(Object value)180 public String oneArg(Object value) { 181 return null; 182 } 183 oneArg(String value)184 public String oneArg(String value) { 185 return null; 186 } 187 throwsNothing(boolean value)188 public String throwsNothing(boolean value) { 189 return null; 190 } 191 throwsIOException(int count)192 public String throwsIOException(int count) throws IOException { 193 return null; 194 } 195 throwsError(int count)196 public String throwsError(int count) { 197 return null; 198 } 199 simpleMethod()200 public String simpleMethod() { 201 return null; 202 } 203 differentMethod()204 public String differentMethod() { 205 return null; 206 } 207 differentMethod(String argument)208 public String differentMethod(String argument) { 209 return null; 210 } 211 otherMethod()212 public String otherMethod() { 213 return null; 214 } 215 simpleMethod(String argument)216 public String simpleMethod(String argument) { 217 return null; 218 } 219 simpleMethod(Collection<?> collection)220 public String simpleMethod(Collection<?> collection) { 221 return null; 222 } 223 simpleMethod(Object argument)224 public String simpleMethod(Object argument) { 225 return null; 226 } 227 simpleMethod(int argument)228 public String simpleMethod(int argument) { 229 return null; 230 } 231 simpleMethod(String argOne, Integer argTwo)232 public String simpleMethod(String argOne, Integer argTwo) { 233 return null; 234 } 235 simpleMethod(String one, Integer two, Integer three, Integer four, Integer five)236 public String simpleMethod(String one, Integer two, Integer three, Integer four, Integer five) { 237 return null; 238 } 239 simpleMethod(String one, String[] two)240 public String simpleMethod(String one, String[] two) { 241 return null; 242 } 243 threeArgumentMethod(int valueOne, Object valueTwo, String valueThree)244 public Object threeArgumentMethod(int valueOne, Object valueTwo, String valueThree) { 245 return null; 246 } 247 threeArgumentMethodWithStrings(int valueOne, String valueTwo, String valueThree)248 public String threeArgumentMethodWithStrings(int valueOne, String valueTwo, String valueThree) { 249 return null; 250 } 251 fourArgumentMethod(int valueOne, String valueTwo, String valueThree, boolean[] array)252 public String fourArgumentMethod(int valueOne, String valueTwo, String valueThree, boolean[] array) { 253 return null; 254 } 255 twoArgumentMethod(int one, int two)256 public void twoArgumentMethod(int one, int two) { 257 258 } 259 arrayMethod(String[] strings)260 public void arrayMethod(String[] strings) { 261 262 } 263 oneArray(boolean[] array)264 public String oneArray(boolean[] array) { 265 return null; 266 } 267 oneArray(byte[] array)268 public String oneArray(byte[] array) { 269 return null; 270 } 271 oneArray(char[] array)272 public String oneArray(char[] array) { 273 return null; 274 } 275 oneArray(double[] array)276 public String oneArray(double[] array) { 277 return null; 278 } 279 oneArray(float[] array)280 public String oneArray(float[] array) { 281 return null; 282 } 283 oneArray(int[] array)284 public String oneArray(int[] array) { 285 return null; 286 } 287 oneArray(long[] array)288 public String oneArray(long[] array) { 289 return null; 290 } 291 oneArray(short[] array)292 public String oneArray(short[] array) { 293 return null; 294 } 295 oneArray(Object[] array)296 public String oneArray(Object[] array) { 297 return null; 298 } 299 canThrowException()300 public String canThrowException() throws CharacterCodingException { 301 return null; 302 } 303 oneArray(String[] array)304 public String oneArray(String[] array) { 305 return null; 306 } 307 varargsString(int i, String... string)308 public void varargsString(int i, String... string) { 309 310 } 311 varargsObject(int i, Object... object)312 public Object varargsObject(int i, Object... object) { 313 return null; 314 } 315 varargs(Object... object)316 public int varargs(Object... object) { 317 return -1; 318 } 319 varargsReturningString(Object... object)320 public String varargsReturningString(Object... object) { 321 return null; 322 } 323 varargs(String... string)324 public int varargs(String... string) { 325 return -1; 326 } 327 mixedVarargs(Object i, String... string)328 public void mixedVarargs(Object i, String... string) { 329 } 330 mixedVarargsReturningString(Object i, String... string)331 public String mixedVarargsReturningString(Object i, String... string) { 332 return null; 333 } 334 mixedVarargsReturningStringArray(Object i, String... string)335 public String[] mixedVarargsReturningStringArray(Object i, String... string) { 336 return null; 337 } 338 mixedVarargsReturningObjectArray(Object i, String... string)339 public Object[] mixedVarargsReturningObjectArray(Object i, String... string) { 340 return null; 341 } 342 varargsbyte(byte... bytes)343 public void varargsbyte(byte... bytes) { 344 } 345 listReturningMethod(Object... objects)346 public List<String> listReturningMethod(Object... objects) { 347 return null; 348 } 349 linkedListReturningMethod()350 public LinkedList<String> linkedListReturningMethod() { 351 return null; 352 } 353 toString(String foo)354 public String toString(String foo) { 355 return null; 356 } 357 voidMethod()358 public void voidMethod() { 359 360 } 361 forList(List<String> list)362 public String forList(List<String> list) { 363 return null; 364 } 365 forSet(Set<String> anySet)366 public String forSet(Set<String> anySet) { 367 return null; 368 } 369 forMap(Map<String, String> map)370 public String forMap(Map<String, String> map) { 371 return null; 372 } 373 forCollection(Collection<String> collection)374 public String forCollection(Collection<String> collection) { 375 return null; 376 } 377 forIterable(Iterable<String> iterable)378 public String forIterable(Iterable<String> iterable) { 379 return null; 380 } 381 arrayReturningMethod()382 public Object[] arrayReturningMethod() { 383 return new Object[0]; 384 } 385 iMethodsReturningMethod()386 public IMethods iMethodsReturningMethod() { 387 return null; 388 } 389 stringReturningMethod()390 public String stringReturningMethod() { 391 return null; 392 } 393 objectArgMethod(Object str)394 public Object objectArgMethod(Object str) { 395 return null; 396 } 397 listArgMethod(List<String> list)398 public Object listArgMethod(List<String> list) { 399 return null; 400 } 401 collectionArgMethod(Collection<String> collection)402 public Object collectionArgMethod(Collection<String> collection) { 403 return null; 404 } 405 iterableArgMethod(Iterable<String> iterable)406 public Object iterableArgMethod(Iterable<String> iterable) { 407 return null; 408 } 409 setArgMethod(Set<String> set)410 public Object setArgMethod(Set<String> set) { 411 return null; 412 } 413 longArg(long longArg)414 public void longArg(long longArg) { 415 416 } 417 intArgumentMethod(int i)418 public void intArgumentMethod(int i) { 419 420 } 421 intArgumentReturningInt(int i)422 public int intArgumentReturningInt(int i) { 423 return 0; 424 } 425 equals(String str)426 public boolean equals(String str) { 427 return false; 428 } 429 equals()430 public boolean equals() { 431 return false; 432 } 433 hashCode(String str)434 public int hashCode(String str) { 435 return 0; 436 } 437 toIntPrimitive(Integer i)438 public int toIntPrimitive(Integer i) { 439 return 0; 440 } 441 toIntWrapper(int i)442 public Integer toIntWrapper(int i) { 443 return null; 444 } 445 forObject(Object object)446 public String forObject(Object object) { 447 return null; 448 } 449 450 @Override voidReturningMethod()451 public Void voidReturningMethod() { 452 return null; 453 } 454 455 @Override genericToString(T arg)456 public <T> String genericToString(T arg) { 457 return null; 458 } 459 } 460