Search in sources :

Example 1 with MinguoEra

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

the class TCKMinguoEra method test_values.

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

Aggregations

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