org.evosuite.stubs.Stubs Maven / Gradle / Ivy
The newest version!
/**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3.0 of the License, or
* (at your option) any later version.
*
* EvoSuite is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with EvoSuite. If not, see .
*/
package org.evosuite.stubs;
public class Stubs {
public static int getReturnValueInt(String className, String methodName, Object... args) {
return 0;
}
public static byte getReturnValueByte(String className, String methodName, Object... args) {
return 0;
}
public static short getReturnValueShort(String className, String methodName, Object... args) {
return 0;
}
public static long getReturnValueLong(String className, String methodName, Object... args) {
return 0L;
}
public static char getReturnValueChar(String className, String methodName, Object... args) {
return 0;
}
public static boolean getReturnValueBoolean(String className, String methodName, Object... args) {
return false;
}
public static float getReturnValueFloat(String className, String methodName, Object... args) {
return 0.0F;
}
public static double getReturnValueDouble(String className, String methodName, Object... args) {
return 0.0;
}
public static String getReturnValueString(String className, String methodName, Object... args) {
return "";
}
public static Object getReturnValueObject(String className, String methodName, Object... args) {
return null;
}
public static int[] getReturnValueIntArray(String className, String methodName, Object... args) {
return new int[] {};
}
public static byte[] getReturnValueByteArray(String className, String methodName, Object... args) {
return new byte[] {};
}
public static short[] getReturnValueShortArray(String className, String methodName, Object... args) {
return new short[] {};
}
public static long[] getReturnValueLongArray(String className, String methodName, Object... args) {
return new long[] {};
}
public static char[] getReturnValueCharArray(String className, String methodName, Object... args) {
return new char[] {};
}
public static boolean[] getReturnValueBooleanArray(String className, String methodName, Object... args) {
return new boolean[] {};
}
public static float[] getReturnValueFloatArray(String className, String methodName, Object... args) {
return new float[] {};
}
public static double[] getReturnValueDoubleArray(String className, String methodName, Object... args) {
return new double[] {};
}
public static String[] getReturnValueStringArray(String className, String methodName, Object... args) {
return new String[] {};
}
public static Object[] getReturnValueObjectArray(String className, String methodName, Object... args) {
return new Object[] {};
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy