org.robolectric.shadows.ShadowSslErrorHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
package org.robolectric.shadows;
import android.webkit.SslErrorHandler;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
@Implements(SslErrorHandler.class)
public class ShadowSslErrorHandler {
private boolean cancelCalled = false;
private boolean proceedCalled = false;
@Implementation
protected void cancel() {
cancelCalled = true;
}
public boolean wasCancelCalled() {
return cancelCalled;
}
@Implementation
protected void proceed() {
proceedCalled = true;
}
public boolean wasProceedCalled() {
return proceedCalled;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy