Search in sources :

Example 1 with ThaiBuddhistEra

use of java.time.chrono.ThaiBuddhistEra in project jdk8u_jdk by JetBrains.

the class TCKThaiBuddhistEra method test_values.

//-----------------------------------------------------------------------
// values()
//-----------------------------------------------------------------------
@Test
public void test_values() {
    List<Era> eraList = ThaiBuddhistChronology.INSTANCE.eras();
    ThaiBuddhistEra[] eras = ThaiBuddhistEra.values();
    assertEquals(eraList.size(), eras.length);
    for (ThaiBuddhistEra era : eras) {
        assertTrue(eraList.contains(era));
    }
}
Also used : ThaiBuddhistEra(java.time.chrono.ThaiBuddhistEra) ThaiBuddhistEra(java.time.chrono.ThaiBuddhistEra) Era(java.time.chrono.Era) Test(org.testng.annotations.Test)

Aggregations

Era (java.time.chrono.Era)1 ThaiBuddhistEra (java.time.chrono.ThaiBuddhistEra)1 Test (org.testng.annotations.Test)1