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 interface IMethods {
12 
booleanReturningMethod()13     boolean booleanReturningMethod();
14 
booleanObjectReturningMethod()15     Boolean booleanObjectReturningMethod();
16 
byteReturningMethod()17     byte byteReturningMethod();
18 
byteObjectReturningMethod()19     Byte byteObjectReturningMethod();
20 
shortReturningMethod()21     short shortReturningMethod();
22 
shortObjectReturningMethod()23     Short shortObjectReturningMethod();
24 
charReturningMethod()25     char charReturningMethod();
26 
charObjectReturningMethod()27     Character charObjectReturningMethod();
28 
intReturningMethod()29     int intReturningMethod();
30 
integerReturningMethod()31     Integer integerReturningMethod();
32 
longReturningMethod()33     long longReturningMethod();
34 
longObjectReturningMethod()35     Long longObjectReturningMethod();
36 
floatReturningMethod()37     float floatReturningMethod();
38 
floatObjectReturningMethod()39     Float floatObjectReturningMethod();
40 
doubleReturningMethod()41     double doubleReturningMethod();
42 
doubleObjectReturningMethod()43     Double doubleObjectReturningMethod();
44 
objectReturningMethod(Object .... objects)45     Object objectReturningMethod(Object ... objects);
46 
objectReturningMethodNoArgs()47     Object objectReturningMethodNoArgs();
48 
oneArg(boolean value)49     String oneArg(boolean value);
50 
oneArg(Boolean value)51     String oneArg(Boolean value);
52 
forBoolean(Boolean value)53     String forBoolean(Boolean value);
54 
oneArg(byte value)55     String oneArg(byte value);
56 
oneArg(Byte value)57     String oneArg(Byte value);
58 
forByte(Byte value)59     String forByte(Byte value);
60 
oneArg(short value)61     String oneArg(short value);
62 
oneArg(Short value)63     String oneArg(Short value);
64 
forShort(Short value)65     String forShort(Short value);
66 
oneArg(char value)67     String oneArg(char value);
68 
oneArg(Character value)69     String oneArg(Character value);
70 
forCharacter(Character value)71     String forCharacter(Character value);
72 
oneArg(int value)73     String oneArg(int value);
74 
oneArg(Integer value)75     String oneArg(Integer value);
76 
forInteger(Integer value)77     String forInteger(Integer value);
78 
oneArg(long value)79     String oneArg(long value);
80 
oneArg(Long value)81     String oneArg(Long value);
82 
forLong(Long value)83     String forLong(Long value);
84 
oneArg(float value)85     String oneArg(float value);
86 
oneArg(Float value)87     String oneArg(Float value);
88 
forFloat(Float value)89     String forFloat(Float value);
90 
oneArg(double value)91     String oneArg(double value);
92 
oneArg(Double value)93     String oneArg(Double value);
94 
forDouble(Double value)95     String forDouble(Double value);
96 
oneArg(Object value)97     String oneArg(Object value);
98 
oneArg(String value)99     String oneArg(String value);
100 
throwsNothing(boolean value)101     String throwsNothing(boolean value);
102 
throwsIOException(int count)103     String throwsIOException(int count) throws IOException;
104 
throwsError(int count)105     String throwsError(int count);
106 
simpleMethod()107     String simpleMethod();
108 
differentMethod()109     String differentMethod();
110 
differentMethod(String argument)111     String differentMethod(String argument);
112 
otherMethod()113     String otherMethod();
114 
simpleMethod(String argument)115     String simpleMethod(String argument);
116 
simpleMethod(Collection<?> collection)117     String simpleMethod(Collection<?> collection);
118 
simpleMethod(Object argument)119     String simpleMethod(Object argument);
120 
simpleMethod(int argument)121     String simpleMethod(int argument);
122 
simpleMethod(String argOne, Integer argTwo)123     String simpleMethod(String argOne, Integer argTwo);
124 
simpleMethod(String one, Integer two, Integer three, Integer four, Integer five)125     String simpleMethod(String one, Integer two, Integer three, Integer four, Integer five);
126 
simpleMethod(String one, String[] two)127     String simpleMethod(String one, String[] two);
128 
threeArgumentMethod(int valueOne, Object valueTwo, String valueThree)129     Object threeArgumentMethod(int valueOne, Object valueTwo, String valueThree);
130 
threeArgumentMethodWithStrings(int valueOne, String valueTwo, String valueThree)131     String threeArgumentMethodWithStrings(int valueOne, String valueTwo, String valueThree);
132 
fourArgumentMethod(int valueOne, String valueTwo, String valueThree, boolean[] array)133     String fourArgumentMethod(int valueOne, String valueTwo, String valueThree, boolean[] array);
134 
twoArgumentMethod(int one, int two)135     void twoArgumentMethod(int one, int two);
136 
arrayMethod(String[] strings)137     void arrayMethod(String[] strings);
138 
oneArray(boolean[] array)139     String oneArray(boolean[] array);
140 
oneArray(byte[] array)141     String oneArray(byte[] array);
142 
oneArray(char[] array)143     String oneArray(char[] array);
144 
oneArray(double[] array)145     String oneArray(double[] array);
146 
oneArray(float[] array)147     String oneArray(float[] array);
148 
oneArray(int[] array)149     String oneArray(int[] array);
150 
oneArray(long[] array)151     String oneArray(long[] array);
152 
oneArray(short[] array)153     String oneArray(short[] array);
154 
oneArray(Object[] array)155     String oneArray(Object[] array);
156 
canThrowException()157     String canThrowException() throws CharacterCodingException;
158 
oneArray(String[] array)159     String oneArray(String[] array);
160 
varargsString(int i, String... string)161     void varargsString(int i, String... string);
162 
varargsObject(int i, Object... object)163     Object varargsObject(int i, Object... object);
164 
varargsbyte(byte... bytes)165     void varargsbyte(byte... bytes);
166 
varargs(Object .... object)167     int varargs(Object ... object);
168 
varargsReturningString(Object .... object)169     String varargsReturningString(Object ... object);
170 
varargs(String .... string)171     int varargs(String ... string);
172 
mixedVarargs(Object i, String ... string)173     void mixedVarargs(Object i, String ... string);
174 
mixedVarargsReturningString(Object i, String ... string)175     String mixedVarargsReturningString(Object i, String ... string);
176 
mixedVarargsReturningStringArray(Object i, String ... string)177     String[] mixedVarargsReturningStringArray(Object i, String ... string);
178 
mixedVarargsReturningObjectArray(Object i, String ... string)179     Object[] mixedVarargsReturningObjectArray(Object i, String ... string);
180 
listReturningMethod(Object .... objects)181     List<String> listReturningMethod(Object ... objects);
182 
linkedListReturningMethod()183     LinkedList<String> linkedListReturningMethod();
184 
toString()185     String toString();
186 
toString(String foo)187     String toString(String foo);
188 
voidMethod()189     void voidMethod();
190 
voidReturningMethod()191     Void voidReturningMethod();
192 
forList(List<String> list)193     String forList(List<String> list);
194 
forSet(Set<String> anySet)195     String forSet(Set<String> anySet);
196 
forMap(Map<String, String> map)197     String forMap(Map<String, String> map);
198 
forCollection(Collection<String> collection)199     String forCollection(Collection<String> collection);
200 
forIterable(Iterable<String> iterable)201     String forIterable(Iterable<String> iterable);
202 
arrayReturningMethod()203     Object[] arrayReturningMethod();
204 
iMethodsReturningMethod()205     IMethods iMethodsReturningMethod();
206 
stringReturningMethod()207     String stringReturningMethod();
208 
objectArgMethod(Object str)209     Object objectArgMethod(Object str);
210 
listArgMethod(List<String> list)211     Object listArgMethod(List<String> list);
212 
collectionArgMethod(Collection<String> collection)213     Object collectionArgMethod(Collection<String> collection);
214 
iterableArgMethod(Iterable<String> collection)215     Object iterableArgMethod(Iterable<String> collection);
216 
setArgMethod(Set<String> set)217     Object setArgMethod(Set<String> set);
218 
longArg(long longArg)219     void longArg(long longArg);
220 
intArgumentMethod(int i)221     void intArgumentMethod(int i);
222 
intArgumentReturningInt(int i)223     int intArgumentReturningInt(int i);
224 
equals(String str)225     boolean equals(String str);
226 
equals()227     boolean equals();
228 
hashCode(String str)229     int hashCode(String str);
230 
toIntPrimitive(Integer i)231     int toIntPrimitive(Integer i);
232 
toIntWrapper(int i)233     Integer toIntWrapper(int i);
234 
forObject(Object object)235     String forObject(Object object);
236 
genericToString(T arg)237     <T> String genericToString(T arg);
238 }
239