Java 类org.robolectric.ParameterizedRobolectricTestRunner.Parameters 实例源码

项目:android-db-commons    文件:UtilityClassesTest.java   
@Parameters(name = "{0}")
public static Collection<Object[]> data() {
  return Arrays.asList(new Object[][] {
      { Cursors.class },
      { SingleRowTransforms.class },
      { Utils.class },
  });
}
项目:android-db-commons    文件:ExpressionsArgsCountTest.java   
@Parameters
public static Collection<Object[]> data() {
  return FluentIterable
      .from(TEST_CASES.entrySet())
      .transform(new Function<Entry<Expression, Integer>, Object[]>() {
        @Override
        public Object[] apply(Entry<Expression, Integer> input) {
          return new Object[] {
              input.getKey().getArgsCount(),
              input.getValue()
          };
        }
      })
      .toList();
}
项目:android-db-commons    文件:ExpressionsBuilderTest.java   
@Parameters
public static Collection<Object[]> data() {
  return FluentIterable
      .from(TEST_CASES.entrySet())
      .transform(new Function<Entry<Expression, String>, Object[]>() {
        @Override
        public Object[] apply(Entry<Expression, String> input) {
          return new Object[] {
              input.getKey().getSql(),
              input.getValue()
          };
        }
      })
      .toList();
}
项目:apps-android-wikipedia    文件:LanguageUtilTest.java   
@Parameters(name = "{0}") public static Iterable<Object[]> data() {
    return Arrays.asList(new Object[][] {
            {CHINESE_LANG, SIMPLIFIED_WIKI_LANG},
            {"zh-Hans", SIMPLIFIED_WIKI_LANG},
            {"zh-Hant", TRADITIONAL_WIKI_LANG},
            {"zh-cmn-Hans", SIMPLIFIED_WIKI_LANG},
            {"zh-cmn-Hant", TRADITIONAL_WIKI_LANG},
            {"zh-Hans-HK", SIMPLIFIED_WIKI_LANG},
            {"zh-Hant-HK", TRADITIONAL_WIKI_LANG}
    });
}
项目:apps-android-wikipedia    文件:LanguageUtilTest.java   
@Parameters(name = "{0}") public static Iterable<Object[]> data() {
    return Arrays.asList(new Object[][] {
            {Locale.CHINESE, SIMPLIFIED_WIKI_LANG},
            {Locale.CHINA, SIMPLIFIED_WIKI_LANG},
            {Locale.TAIWAN, TRADITIONAL_WIKI_LANG}
    });
}
项目:GitHub    文件:UriUtilTest.java   
@Parameters
public static Collection<Object[]> data() {
  return Arrays.asList(
      new Object[] {"http"}, new Object[] {"https"}, new Object[] {"ftp"}, new Object[] {"file"});
}
项目:fresco    文件:UriUtilTest.java   
@Parameters
public static Collection<Object[]> data() {
  return Arrays.asList(
      new Object[] {"http"}, new Object[] {"https"}, new Object[] {"ftp"}, new Object[] {"file"});
}
项目:apps-android-wikipedia    文件:NamespaceTypeAdapterTest.java   
@Parameters(name = "{0}") public static Iterable<Object[]> data() {
    return Arrays.asList(new Object[][] {{DeferredParam.NULL}, {DeferredParam.SPECIAL},
            {DeferredParam.MAIN}, {DeferredParam.TALK}});
}
项目:apps-android-wikipedia    文件:UriTypeAdapterTest.java   
@Parameters(name = "{0}") public static Iterable<Object[]> data() {
    return Arrays.asList(new Object[][] {{DeferredParam.NULL}, {DeferredParam.STRING},
            {DeferredParam.OPAQUE}, {DeferredParam.HIERARCHICAL}});
}