Java Code Examples for java.time.temporal.ChronoField#YEAR_OF_ERA

The following examples show how to use java.time.temporal.ChronoField#YEAR_OF_ERA . 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 File: YearMonthTest.java    From j2objc with Apache License 2.0 5 votes vote down vote up
@Test
public void test_with_TemporalField_long_invalidValue() {
    Object[][] invalidValues = new Object[][] {
            { ChronoField.YEAR_OF_ERA, 0 },
            { ChronoField.YEAR_OF_ERA, Year.MAX_VALUE + 1 },
            { ChronoField.YEAR, Year.MIN_VALUE - 1 },
            { ChronoField.YEAR, Year.MAX_VALUE + 1 },
            { ChronoField.ERA, -1 },
            { ChronoField.ERA, 2 },
            { ChronoField.MONTH_OF_YEAR, -1 },
            { ChronoField.MONTH_OF_YEAR, 0 },
            { ChronoField.MONTH_OF_YEAR, 13 },
            { ChronoField.PROLEPTIC_MONTH, Year.MAX_VALUE * 12L + 12 },
            { ChronoField.PROLEPTIC_MONTH, Year.MIN_VALUE * 12L - 1 },
    };

    YearMonth ym = YearMonth.of(2000, Month.JANUARY);
    for (Object[] values : invalidValues) {
        ChronoField field = (ChronoField) values[0];
        long value = ((Number) values[1]).longValue();
        try {
            ym.with(field, value);
            fail("ym.with(" + field + ", " + value + ") should have failed.");
        } catch (DateTimeException expected) {
        }
    }

}
 
Example 2
Source File: TCKIsoChronology.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 3
Source File: TCKMinguoChronology.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 4
Source File: TCKIsoChronology.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 5
Source File: TCKThaiBuddhistChronology.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 6
Source File: TCKIsoChronology.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@DataProvider
public static Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 7
Source File: TCKMinguoChronology.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 8
Source File: TCKMinguoChronology.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 9
Source File: TCKIsoChronology.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 10
Source File: TCKIsoChronology.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 11
Source File: TCKThaiBuddhistChronology.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 12
Source File: TCKMinguoChronology.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 13
Source File: TCKThaiBuddhistChronology.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 14
Source File: TCKMinguoChronology.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 15
Source File: TCKIsoChronology.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 16
Source File: TCKThaiBuddhistChronology.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 17
Source File: TCKThaiBuddhistChronology.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 18
Source File: TCKMinguoChronology.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 19
Source File: TCKMinguoChronology.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}
 
Example 20
Source File: TCKIsoChronology.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@DataProvider(name = "resolve_yearOfEra")
Object[][] data_resolve_yearOfEra() {
    return new Object[][] {
            // era only
            {ResolverStyle.STRICT, -1, null, null, null, null},
            {ResolverStyle.SMART, -1, null, null, null, null},
            {ResolverStyle.LENIENT, -1, null, null, null, null},

            {ResolverStyle.STRICT, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.SMART, 0, null, null, ChronoField.ERA, 0},
            {ResolverStyle.LENIENT, 0, null, null, ChronoField.ERA, 0},

            {ResolverStyle.STRICT, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.SMART, 1, null, null, ChronoField.ERA, 1},
            {ResolverStyle.LENIENT, 1, null, null, ChronoField.ERA, 1},

            {ResolverStyle.STRICT, 2, null, null, null, null},
            {ResolverStyle.SMART, 2, null, null, null, null},
            {ResolverStyle.LENIENT, 2, null, null, null, null},

            // era and year-of-era
            {ResolverStyle.STRICT, -1, 2012, null, null, null},
            {ResolverStyle.SMART, -1, 2012, null, null, null},
            {ResolverStyle.LENIENT, -1, 2012, null, null, null},

            {ResolverStyle.STRICT, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, 0, 2012, null, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, 0, 2012, null, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, 1, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, 1, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, 2, 2012, null, null, null},
            {ResolverStyle.SMART, 2, 2012, null, null, null},
            {ResolverStyle.LENIENT, 2, 2012, null, null, null},

            // year-of-era only
            {ResolverStyle.STRICT, null, 2012, null, ChronoField.YEAR_OF_ERA, 2012},
            {ResolverStyle.SMART, null, 2012, null, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, null, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.SMART, null, Integer.MAX_VALUE, null, null, null},
            {ResolverStyle.LENIENT, null, Integer.MAX_VALUE, null, ChronoField.YEAR, Integer.MAX_VALUE},

            // year-of-era and year
            {ResolverStyle.STRICT, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.SMART, null, 2012, 2012, ChronoField.YEAR, 2012},
            {ResolverStyle.LENIENT, null, 2012, 2012, ChronoField.YEAR, 2012},

            {ResolverStyle.STRICT, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.SMART, null, 2012, -2011, ChronoField.YEAR, -2011},
            {ResolverStyle.LENIENT, null, 2012, -2011, ChronoField.YEAR, -2011},

            {ResolverStyle.STRICT, null, 2012, 2013, null, null},
            {ResolverStyle.SMART, null, 2012, 2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, 2013, null, null},

            {ResolverStyle.STRICT, null, 2012, -2013, null, null},
            {ResolverStyle.SMART, null, 2012, -2013, null, null},
            {ResolverStyle.LENIENT, null, 2012, -2013, null, null},
    };
}