
org.robolectric.shadows.ShadowWifiP2pGroup 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.
The newest version!
package org.robolectric.shadows;
import static org.robolectric.util.reflector.Reflector.reflector;
import android.net.wifi.p2p.WifiP2pGroup;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.util.reflector.Direct;
import org.robolectric.util.reflector.ForType;
@Implements(WifiP2pGroup.class)
public class ShadowWifiP2pGroup {
@RealObject private WifiP2pGroup realObject;
@Implementation
public void setInterface(String intf) {
reflector(WifiP2pGroupReflector.class, realObject).setInterface(intf);
}
@Implementation
public void setPassphrase(String passphrase) {
reflector(WifiP2pGroupReflector.class, realObject).setInterface(passphrase);
}
@Implementation
public void setNetworkName(String networkName) {
reflector(WifiP2pGroupReflector.class, realObject).setInterface(networkName);
}
@ForType(WifiP2pGroup.class)
interface WifiP2pGroupReflector {
@Direct
void setInterface(String intf);
@Direct
void setPassphrase(String passphrase);
@Direct
void setNetworkName(String networkName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy