public void testCoerceEnumAToEnumA() { Object output = null; try { output = ELSupport.coerceToEnum(TestEnumA.VALA1, TestEnumA.class); } finally { assertEquals(TestEnumA.VALA1, output); } }
public void testCoerceEnumAToEnumC() { Object output = null; try { output = ELSupport.coerceToEnum(TestEnumA.VALA1, TestEnumC.class); } catch (ELException ele) { // Ignore } assertNull(output); }