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