use of java.time.chrono.HijrahEra in project jdk8u_jdk by JetBrains.
the class TCKHijrahChronology method data_resolve_styleByEra.
//-----------------------------------------------------------------------
// Tests for HijrahChronology resolve
//-----------------------------------------------------------------------
@DataProvider(name = "resolve_styleByEra")
Object[][] data_resolve_styleByEra() {
Object[][] result = new Object[ResolverStyle.values().length * HijrahEra.values().length][];
int i = 0;
for (ResolverStyle style : ResolverStyle.values()) {
for (HijrahEra era : HijrahEra.values()) {
result[i++] = new Object[] { style, era };
}
}
return result;
}
use of java.time.chrono.HijrahEra in project jdk8u_jdk by JetBrains.
the class TCKHijrahEra method test_values.
//-----------------------------------------------------------------------
// values()
//-----------------------------------------------------------------------
@Test
public void test_values() {
List<Era> eraList = HijrahChronology.INSTANCE.eras();
HijrahEra[] eras = HijrahEra.values();
assertEquals(eraList.size(), eras.length);
for (HijrahEra era : eras) {
assertTrue(eraList.contains(era));
}
}
Aggregations