org.testng.annotations.DataProvider Java Examples
The following examples show how to use
org.testng.annotations.DataProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: TencentKona-8 Author: Tencent File: TCKDuration.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="PlusSeconds") Object[][] provider_plusSeconds_long() { return new Object[][] { {0, 0, 0, 0, 0}, {0, 0, 1, 1, 0}, {0, 0, -1, -1, 0}, {0, 0, Long.MAX_VALUE, Long.MAX_VALUE, 0}, {0, 0, Long.MIN_VALUE, Long.MIN_VALUE, 0}, {1, 0, 0, 1, 0}, {1, 0, 1, 2, 0}, {1, 0, -1, 0, 0}, {1, 0, Long.MAX_VALUE - 1, Long.MAX_VALUE, 0}, {1, 0, Long.MIN_VALUE, Long.MIN_VALUE + 1, 0}, {1, 1, 0, 1, 1}, {1, 1, 1, 2, 1}, {1, 1, -1, 0, 1}, {1, 1, Long.MAX_VALUE - 1, Long.MAX_VALUE, 1}, {1, 1, Long.MIN_VALUE, Long.MIN_VALUE + 1, 1}, {-1, 1, 0, -1, 1}, {-1, 1, 1, 0, 1}, {-1, 1, -1, -2, 1}, {-1, 1, Long.MAX_VALUE, Long.MAX_VALUE - 1, 1}, {-1, 1, Long.MIN_VALUE + 1, Long.MIN_VALUE, 1}, }; }
Example #2
Source Project: TencentKona-8 Author: Tencent File: TestNumberParser.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="parseDigitsAdjacentLenient") Object[][] provider_parseDigitsAdjacentLenient() { return new Object[][] { // never {"5", 1, null, null}, {"54", 1, null, null}, {"543", 3, 5, 43}, {"543A", 3, 5, 43}, {"5432", 4, 54, 32}, {"5432A", 4, 54, 32}, {"54321", 5, 543, 21}, {"54321A", 5, 543, 21}, }; }
Example #3
Source Project: dragonwell8_jdk Author: alibaba File: TCKPeriod.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="minus") Object[][] data_minus() { return new Object[][] { {pymd(0, 0, 0), pymd(0, 0, 0), pymd(0, 0, 0)}, {pymd(0, 0, 0), pymd(5, 0, 0), pymd(-5, 0, 0)}, {pymd(0, 0, 0), pymd(-5, 0, 0), pymd(5, 0, 0)}, {pymd(0, 0, 0), pymd(0, 5, 0), pymd(0, -5, 0)}, {pymd(0, 0, 0), pymd(0, -5, 0), pymd(0, 5, 0)}, {pymd(0, 0, 0), pymd(0, 0, 5), pymd(0, 0, -5)}, {pymd(0, 0, 0), pymd(0, 0, -5), pymd(0, 0, 5)}, {pymd(0, 0, 0), pymd(2, 3, 4), pymd(-2, -3, -4)}, {pymd(0, 0, 0), pymd(-2, -3, -4), pymd(2, 3, 4)}, {pymd(4, 5, 6), pymd(2, 3, 4), pymd(2, 2, 2)}, {pymd(4, 5, 6), pymd(-2, -3, -4), pymd(6, 8, 10)}, }; }
Example #4
Source Project: dragonwell8_jdk Author: alibaba File: TestJapaneseChronology.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="invalid_eraYear") Object[][] invalidEraYearData() { return new Object[][] { // Japanese era, yearOfEra { JapaneseEra.MEIJI, -1 }, { JapaneseEra.MEIJI, 0 }, { JapaneseEra.MEIJI, 46 }, { JapaneseEra.TAISHO, -1 }, { JapaneseEra.TAISHO, 0 }, { JapaneseEra.TAISHO, 16 }, { JapaneseEra.SHOWA, -1 }, { JapaneseEra.SHOWA, 0 }, { JapaneseEra.SHOWA, 65 }, { JapaneseEra.HEISEI, -1 }, { JapaneseEra.HEISEI, 0 }, { JapaneseEra.HEISEI, 32 }, { JapaneseEra.of(3), -1 }, { JapaneseEra.of(3), 0 }, { JapaneseEra.of(3), Year.MAX_VALUE }, }; }
Example #5
Source Project: TencentKona-8 Author: Tencent File: TestChronoUnit.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name = "weeksBetween") Object[][] data_weeksBetween() { return new Object[][] { {date(2012, JULY, 2), date(2012, JUNE, 25), -1}, {date(2012, JULY, 2), date(2012, JUNE, 26), 0}, {date(2012, JULY, 2), date(2012, JULY, 2), 0}, {date(2012, JULY, 2), date(2012, JULY, 8), 0}, {date(2012, JULY, 2), date(2012, JULY, 9), 1}, {date(2012, FEBRUARY, 28), date(2012, FEBRUARY, 21), -1}, {date(2012, FEBRUARY, 28), date(2012, FEBRUARY, 22), 0}, {date(2012, FEBRUARY, 28), date(2012, FEBRUARY, 28), 0}, {date(2012, FEBRUARY, 28), date(2012, FEBRUARY, 29), 0}, {date(2012, FEBRUARY, 28), date(2012, MARCH, 1), 0}, {date(2012, FEBRUARY, 28), date(2012, MARCH, 5), 0}, {date(2012, FEBRUARY, 28), date(2012, MARCH, 6), 1}, {date(2012, FEBRUARY, 29), date(2012, FEBRUARY, 22), -1}, {date(2012, FEBRUARY, 29), date(2012, FEBRUARY, 23), 0}, {date(2012, FEBRUARY, 29), date(2012, FEBRUARY, 28), 0}, {date(2012, FEBRUARY, 29), date(2012, FEBRUARY, 29), 0}, {date(2012, FEBRUARY, 29), date(2012, MARCH, 1), 0}, {date(2012, FEBRUARY, 29), date(2012, MARCH, 6), 0}, {date(2012, FEBRUARY, 29), date(2012, MARCH, 7), 1}, }; }
Example #6
Source Project: TencentKona-8 Author: Tencent File: TCKThaiBuddhistChronology.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="badDates") Object[][] data_badDates() { return new Object[][] { {1728, 0, 0}, {1728, -1, 1}, {1728, 0, 1}, {1728, 14, 1}, {1728, 15, 1}, {1728, 1, -1}, {1728, 1, 0}, {1728, 1, 32}, {1728, 12, -1}, {1728, 12, 0}, {1728, 12, 32}, {3 + YDIFF, 2, 29}, {600 + YDIFF, 2, 29}, {1501 + YDIFF, 2, 29}, }; }
Example #7
Source Project: TencentKona-8 Author: Tencent File: TCKDuration.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="durationBetweenLocalDateTime") Object[][] data_durationBetweenLocalDateTime() { return new Object[][] { {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 565_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 30, 65_000_000), -2L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 565_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), -1L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 565_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 32, 65_000_000), 0L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 565_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 33, 65_000_000), 1L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 565_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 34, 65_000_000), 2L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 30, 565_000_000), -1L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 31, 565_000_000), 0L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 32, 565_000_000), 1L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 33, 565_000_000), 2L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 34, 565_000_000), 3L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 30, 65_000_000), -1L, 0}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), 0L, 0}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 32, 65_000_000), 1L, 0}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 33, 65_000_000), 2L, 0}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2013, 3, 24, 0, 44, 34, 65_000_000), 3L, 0}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2813, 3, 24, 0, 44, 30, 565_000_000), 2 * CYCLE_SECS - 1L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2813, 3, 24, 0, 44, 31, 565_000_000), 2 * CYCLE_SECS + 0L, 500_000_000}, {LocalDateTime.of(2013, 3, 24, 0, 44, 31, 65_000_000), LocalDateTime.of(2813, 3, 24, 0, 44, 32, 565_000_000), 2 * CYCLE_SECS + 1L, 500_000_000}, }; }
Example #8
Source Project: dragonwell8_jdk Author: alibaba File: TCKYear.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="plus_long_TemporalUnit") Object[][] data_plus_long_TemporalUnit() { return new Object[][] { {Year.of(1), 1, ChronoUnit.YEARS, Year.of(2), null}, {Year.of(1), -12, ChronoUnit.YEARS, Year.of(-11), null}, {Year.of(1), 0, ChronoUnit.YEARS, Year.of(1), null}, {Year.of(999999999), 0, ChronoUnit.YEARS, Year.of(999999999), null}, {Year.of(-999999999), 0, ChronoUnit.YEARS, Year.of(-999999999), null}, {Year.of(0), -999999999, ChronoUnit.YEARS, Year.of(-999999999), null}, {Year.of(0), 999999999, ChronoUnit.YEARS, Year.of(999999999), null}, {Year.of(-1), 1, ChronoUnit.ERAS, Year.of(2), null}, {Year.of(5), 1, ChronoUnit.CENTURIES, Year.of(105), null}, {Year.of(5), 1, ChronoUnit.DECADES, Year.of(15), null}, {Year.of(999999999), 1, ChronoUnit.YEARS, null, DateTimeException.class}, {Year.of(-999999999), -1, ChronoUnit.YEARS, null, DateTimeException.class}, {Year.of(1), 0, ChronoUnit.DAYS, null, DateTimeException.class}, {Year.of(1), 0, ChronoUnit.WEEKS, null, DateTimeException.class}, {Year.of(1), 0, ChronoUnit.MONTHS, null, DateTimeException.class}, }; }
Example #9
Source Project: TencentKona-8 Author: Tencent File: TCKLocalizedPrinterParser.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="date") Object[][] data_date() { return new Object[][] { {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.UK}, {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.US}, {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.FRANCE}, {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.JAPAN}, {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.UK}, {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.US}, {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.FRANCE}, {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.JAPAN}, {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.UK}, {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.US}, {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.FRANCE}, {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.JAPAN}, {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.UK}, {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.US}, {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.FRANCE}, {LocalDate.of(2012, 6, 30), FormatStyle.FULL, DateFormat.FULL, Locale.JAPAN}, }; }
Example #10
Source Project: TencentKona-8 Author: Tencent File: TCKYear.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="minus_long_TemporalUnit") Object[][] data_minus_long_TemporalUnit() { return new Object[][] { {Year.of(1), 1, ChronoUnit.YEARS, Year.of(0), null}, {Year.of(1), -12, ChronoUnit.YEARS, Year.of(13), null}, {Year.of(1), 0, ChronoUnit.YEARS, Year.of(1), null}, {Year.of(999999999), 0, ChronoUnit.YEARS, Year.of(999999999), null}, {Year.of(-999999999), 0, ChronoUnit.YEARS, Year.of(-999999999), null}, {Year.of(0), -999999999, ChronoUnit.YEARS, Year.of(999999999), null}, {Year.of(0), 999999999, ChronoUnit.YEARS, Year.of(-999999999), null}, {Year.of(999999999), 1, ChronoUnit.ERAS, Year.of(-999999999 + 1), null}, {Year.of(105), 1, ChronoUnit.CENTURIES, Year.of(5), null}, {Year.of(15), 1, ChronoUnit.DECADES, Year.of(5), null}, {Year.of(-999999999), 1, ChronoUnit.YEARS, null, DateTimeException.class}, {Year.of(1), -999999999, ChronoUnit.YEARS, null, DateTimeException.class}, {Year.of(1), 0, ChronoUnit.DAYS, null, DateTimeException.class}, {Year.of(1), 0, ChronoUnit.WEEKS, null, DateTimeException.class}, {Year.of(1), 0, ChronoUnit.MONTHS, null, DateTimeException.class}, }; }
Example #11
Source Project: dragonwell8_jdk Author: alibaba File: TCKChronoField.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="fieldUnit") Object[][] data_fieldUnit() { return new Object[][] { {YEAR, YEARS, FOREVER}, {MONTH_OF_YEAR, MONTHS, YEARS}, {DAY_OF_MONTH, DAYS, MONTHS}, {DAY_OF_WEEK, DAYS, WEEKS}, {DAY_OF_YEAR, DAYS, YEARS}, {HOUR_OF_DAY, HOURS, DAYS}, {MINUTE_OF_DAY, MINUTES, DAYS}, {MINUTE_OF_HOUR, MINUTES, HOURS}, {SECOND_OF_DAY, SECONDS, DAYS}, {SECOND_OF_MINUTE, SECONDS, MINUTES}, {MILLI_OF_DAY, MILLIS, DAYS}, {MILLI_OF_SECOND, MILLIS, SECONDS}, {MICRO_OF_SECOND, MICROS, SECONDS}, {MICRO_OF_DAY, MICROS, DAYS}, {NANO_OF_SECOND, NANOS, SECONDS}, {NANO_OF_DAY, NANOS, DAYS}, }; }
Example #12
Source Project: TencentKona-8 Author: Tencent File: TestUmmAlQuraChronology.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="patternMonthNames") Object[][] data_patternMonthNames() { return new Object[][] { {1434, 1, 1, "01 AH Thu Muharram 1434"}, {1434, 2, 1, "01 AH Fri Safar 1434"}, {1434, 3, 1, "01 AH Sun Rabi\u02bb I 1434"},//the actual month name is Rabi Al-Awwal, but the locale data contains short form. {1434, 4, 1, "01 AH Mon Rabi\u02bb II 1434"},//the actual month name is Rabi Al-Akhar, but the locale data contains short form. {1434, 5, 1, "01 AH Wed Jumada I 1434"},//the actual month name is Jumada Al-Awwal, but the locale data contains short form. {1434, 6, 1, "01 AH Thu Jumada II 1434"},//the actual month name is Jumada Al-Akhar, but the locale data contains short form. {1434, 7, 1, "01 AH Sat Rajab 1434"}, {1434, 8, 1, "01 AH Mon Sha\u02bbban 1434"}, {1434, 9, 1, "01 AH Tue Ramadan 1434"}, {1434, 10, 1, "01 AH Thu Shawwal 1434"}, {1434, 11, 1, "01 AH Sat Dhu\u02bbl-Qi\u02bbdah 1434"}, {1434, 12, 1, "01 AH Sun Dhu\u02bbl-Hijjah 1434"}, }; }
Example #13
Source Project: TencentKona-8 Author: Tencent File: TCKMinguoChronology.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="prolepticYear") Object[][] data_prolepticYear() { return new Object[][] { {1, MinguoEra.ROC, 1912 - YDIFF, 1912 - YDIFF, true}, {1, MinguoEra.ROC, 1916 - YDIFF, 1916 - YDIFF, true}, {1, MinguoEra.ROC, 1914 - YDIFF, 1914 - YDIFF, false}, {1, MinguoEra.ROC, 2000 - YDIFF, 2000 - YDIFF, true}, {1, MinguoEra.ROC, 2100 - YDIFF, 2100 - YDIFF, false}, {1, MinguoEra.ROC, 0, 0, false}, {1, MinguoEra.ROC, 1908 - YDIFF, 1908 - YDIFF, true}, {1, MinguoEra.ROC, 1900 - YDIFF, 1900 - YDIFF, false}, {1, MinguoEra.ROC, 1600 - YDIFF, 1600 - YDIFF, true}, {0, MinguoEra.BEFORE_ROC, YDIFF - 1911, 1912 - YDIFF, true}, {0, MinguoEra.BEFORE_ROC, YDIFF - 1915, 1916 - YDIFF, true}, {0, MinguoEra.BEFORE_ROC, YDIFF - 1913, 1914 - YDIFF, false}, {0, MinguoEra.BEFORE_ROC, YDIFF - 1999, 2000 - YDIFF, true}, {0, MinguoEra.BEFORE_ROC, YDIFF - 2099, 2100 - YDIFF, false}, {0, MinguoEra.BEFORE_ROC, 1, 0, false}, {0, MinguoEra.BEFORE_ROC, YDIFF - 1907, 1908 - YDIFF, true}, {0, MinguoEra.BEFORE_ROC, YDIFF - 1899, 1900 - YDIFF, false}, {0, MinguoEra.BEFORE_ROC, YDIFF - 1599, 1600 - YDIFF, true}, }; }
Example #14
Source Project: TencentKona-8 Author: Tencent File: TCKOffsetDateTime.java License: GNU General Public License v2.0 | 6 votes |
@DataProvider(name="periodUntilUnit") Object[][] data_untilUnit() { return new Object[][] { {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 13, 1, 1, 0, OFFSET_PONE), HALF_DAYS, 1}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 2, 1, 1, 0, OFFSET_PONE), HOURS, 1}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 2, 1, 1, 0, OFFSET_PONE), MINUTES, 60}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 2, 1, 1, 0, OFFSET_PONE), SECONDS, 3600}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 2, 1, 1, 0, OFFSET_PONE), MILLIS, 3600*1000}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 2, 1, 1, 0, OFFSET_PONE), MICROS, 3600*1000*1000L}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 2, 1, 1, 0, OFFSET_PONE), NANOS, 3600*1000*1000L*1000}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 14, 1, 1, 0, OFFSET_PTWO), HALF_DAYS, 1}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 3, 1, 1, 0, OFFSET_PTWO), HOURS, 1}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 3, 1, 1, 0, OFFSET_PTWO), MINUTES, 60}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 3, 1, 1, 0, OFFSET_PTWO), SECONDS, 3600}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 3, 1, 1, 0, OFFSET_PTWO), MILLIS, 3600*1000}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 3, 1, 1, 0, OFFSET_PTWO), MICROS, 3600*1000*1000L}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 6, 30, 3, 1, 1, 0, OFFSET_PTWO), NANOS, 3600*1000*1000L*1000}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 7, 1, 1, 1, 0, 999999999, OFFSET_PONE), DAYS, 0}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 7, 1, 1, 1, 1, 0, OFFSET_PONE), DAYS, 1}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 8, 29, 1, 1, 1, 0, OFFSET_PONE), MONTHS, 1}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 8, 30, 1, 1, 1, 0, OFFSET_PONE), MONTHS, 2}, {OffsetDateTime.of(2010, 6, 30, 1, 1, 1, 0, OFFSET_PONE), OffsetDateTime.of(2010, 8, 31, 1, 1, 1, 0, OFFSET_PONE), MONTHS, 2}, }; }
Example #15
Source Project: TencentKona-8 Author: Tencent File: TCKMinguoChronology.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name="localDateTime") Object[][] data_localDateTime() { return new Object[][] { {LocalDateTime.of(2012, 2, 29, 2, 7), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, 29), LocalTime.of(2, 7), null}, {ZonedDateTime.of(2012, 2, 29, 2, 7, 1, 1, ZONE_PARIS), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, 29), LocalTime.of(2, 7, 1, 1), null}, {OffsetDateTime.of(2012, 2, 29, 2, 7, 1, 1, OFFSET_PTWO), MinguoChronology.INSTANCE.date(MinguoEra.ROC, 2012 - YDIFF, 2, 29), LocalTime.of(2, 7, 1, 1), null}, {JapaneseDate.of(2012, 2, 29), null, null, DateTimeException.class}, {ThaiBuddhistDate.of(2012 + 543, 2, 29), null, null, DateTimeException.class}, {LocalDate.of(2012, 2, 29), null, null, DateTimeException.class}, {LocalTime.of(20, 30, 29, 0), null, null, DateTimeException.class}, }; }
Example #16
Source Project: dragonwell8_jdk Author: alibaba File: RowSetMetaDataTests.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "invalidColumnRanges") private Object[][] invalidColumnRanges() { return new Object[][]{ {-1}, {0}, {MAX_COLUMNS + 1} }; }
Example #17
Source Project: dragonwell8_jdk Author: alibaba File: TCKInstant.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name="badTemporalAmount") Object[][] data_badPlusTemporalAmount() { return new Object[][] { {MockSimplePeriod.of(2, YEARS)}, {MockSimplePeriod.of(2, MONTHS)}, }; }
Example #18
Source Project: dragonwell8_jdk Author: alibaba File: MapBinToFromTreeTest.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "maps") static Object[][] mapProvider() { return new Object[][] { // Pass in the class name as a description for test reporting // purposes { HashMap.class.getName(), new HashMap(INITIAL_CAPACITY, LOAD_FACTOR) }, { LinkedHashMap.class.getName(), new LinkedHashMap(INITIAL_CAPACITY, LOAD_FACTOR) }, { ConcurrentHashMap.class.getName(), new ConcurrentHashMap(INITIAL_CAPACITY, LOAD_FACTOR) }, }; }
Example #19
Source Project: TencentKona-8 Author: Tencent File: TCKDayOfWeek.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name="plus") Object[][] data_plus() { return new Object[][] { {1, -8, 7}, {1, -7, 1}, {1, -6, 2}, {1, -5, 3}, {1, -4, 4}, {1, -3, 5}, {1, -2, 6}, {1, -1, 7}, {1, 0, 1}, {1, 1, 2}, {1, 2, 3}, {1, 3, 4}, {1, 4, 5}, {1, 5, 6}, {1, 6, 7}, {1, 7, 1}, {1, 8, 2}, {1, 1, 2}, {2, 1, 3}, {3, 1, 4}, {4, 1, 5}, {5, 1, 6}, {6, 1, 7}, {7, 1, 1}, {1, -1, 7}, {2, -1, 1}, {3, -1, 2}, {4, -1, 3}, {5, -1, 4}, {6, -1, 5}, {7, -1, 6}, }; }
Example #20
Source Project: TencentKona-8 Author: Tencent File: SupplementaryChars.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "supported") private Object[][] supported() { return new Object[][] { {"<?xml version=\"1.0\"?><tag>\uD840\uDC0B</tag>"}, {"<?xml version=\"1.0\"?><!-- \uD840\uDC0B --><tag/>"}, {"<?xml version=\"1.1\"?><tag\uD840\uDC0B>in tag name</tag\uD840\uDC0B>"}, {"<?xml version=\"1.1\"?><tag attr\uD840\uDC0B=\"in attribute\">in attribute name</tag>"}, {"<?xml version=\"1.1\"?><tag>\uD840\uDC0B</tag>"}, {"<?xml version=\"1.1\"?><!-- \uD840\uDC0B --><dontCare/>"} }; }
Example #21
Source Project: dragonwell8_jdk Author: alibaba File: ParallelPrefix.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider public static Object[][] longSet(){ return genericData(size -> LongStream.range(0, size).toArray(), new LongBinaryOperator[]{ Long::sum, Long::min}); }
Example #22
Source Project: TencentKona-8 Author: Tencent File: TCKDateTimeFormatters.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name="sample_isoLocalDateTime") Object[][] provider_sample_isoLocalDateTime() { return new Object[][]{ {2008, null, null, null, null, null, null, null, null, null, DateTimeException.class}, {null, 6, null, null, null, null, null, null, null, null, DateTimeException.class}, {null, null, 30, null, null, null, null, null, null, null, DateTimeException.class}, {null, null, null, 11, null, null, null, null, null, null, DateTimeException.class}, {null, null, null, null, 5, null, null, null, null, null, DateTimeException.class}, {null, null, null, null, null, null, null, "+01:00", null, null, DateTimeException.class}, {null, null, null, null, null, null, null, null, "Europe/Paris", null, DateTimeException.class}, {2008, 6, 30, 11, null, null, null, null, null, null, DateTimeException.class}, {2008, 6, 30, null, 5, null, null, null, null, null, DateTimeException.class}, {2008, 6, null, 11, 5, null, null, null, null, null, DateTimeException.class}, {2008, null, 30, 11, 5, null, null, null, null, null, DateTimeException.class}, {null, 6, 30, 11, 5, null, null, null, null, null, DateTimeException.class}, {2008, 6, 30, 11, 5, null, null, null, null, "2008-06-30T11:05", null}, {2008, 6, 30, 11, 5, 30, null, null, null, "2008-06-30T11:05:30", null}, {2008, 6, 30, 11, 5, 30, 500000000, null, null, "2008-06-30T11:05:30.5", null}, {2008, 6, 30, 11, 5, 30, 1, null, null, "2008-06-30T11:05:30.000000001", null}, {2008, 6, 30, 11, 5, null, null, "+01:00", null, "2008-06-30T11:05", null}, {2008, 6, 30, 11, 5, 30, null, "+01:00", null, "2008-06-30T11:05:30", null}, {2008, 6, 30, 11, 5, 30, 500000000, "+01:00", null, "2008-06-30T11:05:30.5", null}, {2008, 6, 30, 11, 5, 30, 1, "+01:00", null, "2008-06-30T11:05:30.000000001", null}, {2008, 6, 30, 11, 5, null, null, "+01:00", "Europe/Paris", "2008-06-30T11:05", null}, {2008, 6, 30, 11, 5, 30, null, "+01:00", "Europe/Paris", "2008-06-30T11:05:30", null}, {2008, 6, 30, 11, 5, 30, 500000000, "+01:00", "Europe/Paris", "2008-06-30T11:05:30.5", null}, {2008, 6, 30, 11, 5, 30, 1, "+01:00", "Europe/Paris", "2008-06-30T11:05:30.000000001", null}, {2008, 6, 30, 11, 5, null, null, null, "Europe/Paris", "2008-06-30T11:05", null}, {2008, 6, 30, 11, 5, 30, null, null, "Europe/Paris", "2008-06-30T11:05:30", null}, {2008, 6, 30, 11, 5, 30, 500000000, null, "Europe/Paris", "2008-06-30T11:05:30.5", null}, {2008, 6, 30, 11, 5, 30, 1, null, "Europe/Paris", "2008-06-30T11:05:30.000000001", null}, {123456, 6, 30, 11, 5, null, null, null, null, "+123456-06-30T11:05", null}, }; }
Example #23
Source Project: dragonwell8_jdk Author: alibaba File: TCKFormatStyle.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name="formatStyle") Object[][] data_formatStyle() { return new Object[][] { {ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.FULL, "Tuesday, October 2, 2001 1:02:03 AM CEST Europe/Paris"}, {ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.LONG, "October 2, 2001 1:02:03 AM CEST Europe/Paris"}, {ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.MEDIUM, "Oct 2, 2001 1:02:03 AM Europe/Paris"}, {ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.SHORT, "10/2/01 1:02 AM Europe/Paris"}, {ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.FULL, "Tuesday, October 2, 2001 1:02:03 AM +02:00 +02:00"}, {ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.LONG, "October 2, 2001 1:02:03 AM +02:00 +02:00"}, {ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.MEDIUM, "Oct 2, 2001 1:02:03 AM +02:00"}, {ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.SHORT, "10/2/01 1:02 AM +02:00"}, }; }
Example #24
Source Project: TencentKona-8 Author: Tencent File: TestLocalDate.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name="samplePlusDaysSymmetry") Object[][] provider_samplePlusDaysSymmetry() { return new Object[][] { {LocalDate.of(-1, 1, 1)}, {LocalDate.of(-1, 2, 28)}, {LocalDate.of(-1, 3, 1)}, {LocalDate.of(-1, 12, 31)}, {LocalDate.of(0, 1, 1)}, {LocalDate.of(0, 2, 28)}, {LocalDate.of(0, 2, 29)}, {LocalDate.of(0, 3, 1)}, {LocalDate.of(0, 12, 31)}, {LocalDate.of(2007, 1, 1)}, {LocalDate.of(2007, 2, 28)}, {LocalDate.of(2007, 3, 1)}, {LocalDate.of(2007, 12, 31)}, {LocalDate.of(2008, 1, 1)}, {LocalDate.of(2008, 2, 28)}, {LocalDate.of(2008, 2, 29)}, {LocalDate.of(2008, 3, 1)}, {LocalDate.of(2008, 12, 31)}, {LocalDate.of(2099, 1, 1)}, {LocalDate.of(2099, 2, 28)}, {LocalDate.of(2099, 3, 1)}, {LocalDate.of(2099, 12, 31)}, {LocalDate.of(2100, 1, 1)}, {LocalDate.of(2100, 2, 28)}, {LocalDate.of(2100, 3, 1)}, {LocalDate.of(2100, 12, 31)}, }; }
Example #25
Source Project: dragonwell8_jdk Author: alibaba File: CheckArrayTest.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "Patterns") Object[][] patterns() { return new Object[][]{ new Object[]{"maxarray=10", 10, new String[10]}, // successful new Object[]{"maxarray=10", 11, new String[11]}, // exception expected }; }
Example #26
Source Project: micro-integrator Author: wso2 File: SetHostNameTestCase.java License: Apache License 2.0 | 5 votes |
@DataProvider(name = "addressingUrl") public Object[][] addressingUrl() { return new Object[][] { { "http://local:9000/services/SimpleStockQuoteService" }, { "http://10.100.3.110:9000/services/SimpleStockQuoteService" }, { "https://local:9000/services/SimpleStockQuoteService" }, }; }
Example #27
Source Project: TencentKona-8 Author: Tencent File: TCKEraSerialization.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "Eras") Era[][] data_of_calendars() { return new Era[][] { {HijrahEra.AH}, {IsoEra.BCE}, {IsoEra.CE}, {MinguoEra.BEFORE_ROC}, {MinguoEra.ROC}, {ThaiBuddhistEra.BEFORE_BE}, {ThaiBuddhistEra.BE}, }; }
Example #28
Source Project: dragonwell8_jdk Author: alibaba File: JDK8207760.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name = "xsls") public Object[][] getDataBug8207760_cdata() { return new Object[][]{ {xsl8207760_2}, {xsl8207760_3}, }; }
Example #29
Source Project: dragonwell8_jdk Author: alibaba File: ParallelPrefix.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider public static Object[][] stringSet(){ Function<Integer, String[]> stringsFunc = size -> IntStream.range(0, size).mapToObj(Integer::toString).toArray(String[]::new); BinaryOperator<String> concat = String::concat; return genericData(stringsFunc, (BinaryOperator<String>[]) new BinaryOperator[]{ concat }); }
Example #30
Source Project: dragonwell8_jdk Author: alibaba File: TCKOffsetTime.java License: GNU General Public License v2.0 | 5 votes |
@DataProvider(name="sampleTimes") Object[][] provider_sampleTimes() { return new Object[][] { {11, 30, 20, 500, OFFSET_PONE}, {11, 0, 0, 0, OFFSET_PONE}, {23, 59, 59, 999999999, OFFSET_PONE}, }; }