Java 类org.robolectric.shadows.ShadowSystemProperties 实例源码

项目:mobile-store    文件:ProperMultiRepoUpdaterTest.java   
@Implementation
@SuppressWarnings("unused")
public static String get(String key) {
    if ("ro.product.cpu.abilist".equals(key)) {
        return "armeabi";
    }
    return ShadowSystemProperties.get(key);
}
项目:fdroidclient    文件:ProperMultiRepoUpdaterTest.java   
@Implementation
@SuppressWarnings("unused")
public static String get(String key) {
    if ("ro.product.cpu.abilist".equals(key)) {
        return "armeabi";
    }
    return ShadowSystemProperties.get(key);
}
项目:FullRobolectricTestSample    文件:TestRunners.java   
@Override protected ShadowMap createShadowMap() {
  // Don't do any class binding except the bare minimum, because that's what we're trying to test here.
  return new ShadowMap.Builder()
      .addShadowClass(ShadowSystemProperties.class)
      .build();
}