All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.shadows.httpclient.Shadows Maven / Gradle / Ivy

There is a newer version: 4.14.1
Show newest version
package org.robolectric.shadows.httpclient;
import android.net.http.AndroidHttpClient;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import org.apache.http.impl.client.DefaultRequestDirector;
import org.robolectric.internal.ShadowProvider;
import org.robolectric.shadow.api.Shadow;
import org.robolectric.shadows.ShadowAndroidHttpClient;
import org.robolectric.shadows.httpclient.ShadowDefaultRequestDirector;

/**
 * Shadow mapper. Automatically generated by the Robolectric Annotation Processor.
 */
@Generated("org.robolectric.annotation.processing.RobolectricProcessor")
@SuppressWarnings({"unchecked","deprecation"})
public class Shadows implements ShadowProvider {
  private static final List> SHADOWS = new ArrayList<>(2);

  static {
    SHADOWS.add(new AbstractMap.SimpleImmutableEntry<>("android.net.http.AndroidHttpClient", "org.robolectric.shadows.ShadowAndroidHttpClient"));
    SHADOWS.add(new AbstractMap.SimpleImmutableEntry<>("org.apache.http.impl.client.DefaultRequestDirector", "org.robolectric.shadows.httpclient.ShadowDefaultRequestDirector"));
  }

  public static ShadowAndroidHttpClient shadowOf(AndroidHttpClient actual) {
    return (ShadowAndroidHttpClient) Shadow.extract(actual);
  }

  public static ShadowDefaultRequestDirector shadowOf(DefaultRequestDirector actual) {
    return (ShadowDefaultRequestDirector) Shadow.extract(actual);
  }

  @Override
  public void reset() {
    ShadowDefaultRequestDirector.reset();
  }

  @Override
  public Collection> getShadows() {
    return SHADOWS;
  }

  @Override
  public String[] getProvidedPackageNames() {
    return new String[] {
      "android.net.http",
      "org.apache.http.impl.client"
    };
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy