@Parameters(name = "{0}") public static Collection<Object[]> data() { return Arrays.asList(new Object[][] { { Cursors.class }, { SingleRowTransforms.class }, { Utils.class }, }); }
@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(); }
@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(); }
@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} }); }
@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} }); }
@Parameters public static Collection<Object[]> data() { return Arrays.asList( new Object[] {"http"}, new Object[] {"https"}, new Object[] {"ftp"}, new Object[] {"file"}); }
@Parameters(name = "{0}") public static Iterable<Object[]> data() { return Arrays.asList(new Object[][] {{DeferredParam.NULL}, {DeferredParam.SPECIAL}, {DeferredParam.MAIN}, {DeferredParam.TALK}}); }
@Parameters(name = "{0}") public static Iterable<Object[]> data() { return Arrays.asList(new Object[][] {{DeferredParam.NULL}, {DeferredParam.STRING}, {DeferredParam.OPAQUE}, {DeferredParam.HIERARCHICAL}}); }