org.robolectric.internal.IShadow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadowapi Show documentation
Show all versions of shadowapi Show documentation
An alternative Android testing framework.
package org.robolectric.internal;
import org.robolectric.util.ReflectionHelpers;
@SuppressWarnings("TypeParameterUnusedInFormals")
public interface IShadow {
T extract(Object instance);
T newInstanceOf(Class clazz);
T newInstance(Class clazz, Class[] parameterTypes, Object[] params);
T directlyOn(T shadowedObject, Class clazz);
@SuppressWarnings("unchecked")
R directlyOn(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParameter... paramValues);
R directlyOn(T shadowedObject, Class clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues);
R directlyOn(Class clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues);
R invokeConstructor(Class extends R> clazz, R instance, ReflectionHelpers.ClassParameter... paramValues);
String directMethodName(String methodName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy