
org.robolectric.shadows.PolicyValueFactory 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.app.admin.PolicyValue;
import android.app.admin.StringPolicyValue;
import org.robolectric.util.reflector.Constructor;
import org.robolectric.util.reflector.ForType;
/** A Factory class representing {@link StringPolicyValue} */
public class PolicyValueFactory {
private PolicyValueFactory() {}
/** Return a real instance of StringPolicyValue */
public static PolicyValue create() {
return reflector(PolicyValueReflector.class).newStringPolicyValue();
}
@ForType(StringPolicyValue.class)
private interface PolicyValueReflector {
@Constructor
PolicyValue newStringPolicyValue();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy