Package org.robolectric.interceptors
Class AndroidInterceptors.SocketInterceptor
java.lang.Object
org.robolectric.internal.bytecode.Interceptor
org.robolectric.interceptors.AndroidInterceptors.SocketInterceptor
- Enclosing class:
- AndroidInterceptors
public static class AndroidInterceptors.SocketInterceptor extends Interceptor
Intercepts calls to methods in
Socket not present in the OpenJDK.-
Constructor Summary
Constructors Constructor Description SocketInterceptor() -
Method Summary
Modifier and Type Method Description MethodHandlegetMethodHandle(String methodName, MethodType type)Function<Object,Object>handle(MethodSignature methodSignature)Methods inherited from class org.robolectric.internal.bytecode.Interceptor
getMethodRefs, returnDefaultValue
-
Constructor Details
-
SocketInterceptor
public SocketInterceptor()
-
-
Method Details
-
handle
- Specified by:
handlein classInterceptor
-
getMethodHandle
public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException- Specified by:
getMethodHandlein classInterceptor- Throws:
NoSuchMethodExceptionIllegalAccessException
-