1 5 package org.easymock.tests; 6 7 import java.io.IOException ; 8 9 public interface IMethods { 10 11 boolean booleanReturningMethod(int index); 12 13 byte byteReturningMethod(int index); 14 15 short shortReturningMethod(int index); 16 17 char charReturningMethod(int index); 18 19 int intReturningMethod(int index); 20 21 long longReturningMethod(int index); 22 23 float floatReturningMethod(int index); 24 25 double doubleReturningMethod(int index); 26 27 Object objectReturningMethod(int index); 28 29 String oneArgumentMethod(boolean value); 30 31 String oneArgumentMethod(byte value); 32 33 String oneArgumentMethod(short value); 34 35 String oneArgumentMethod(char value); 36 37 String oneArgumentMethod(int value); 38 39 String oneArgumentMethod(long value); 40 41 String oneArgumentMethod(float value); 42 43 String oneArgumentMethod(double value); 44 45 String oneArgumentMethod(Object value); 46 47 public String throwsNothing(boolean value); 48 49 public String throwsIOException(int count) throws IOException ; 50 51 public String throwsError(int count) throws Error ; 52 53 void simpleMethod(); 54 55 void simpleMethodWithArgument(String argument); 56 57 Object threeArgumentMethod(int valueOne, Object valueTwo, String valueThree); 58 59 void twoArgumentMethod(int one, int two); 60 61 void arrayMethod(String [] strings); 62 } 63 | Popular Tags |