Testsuite: jakarta.el.TestOptionalELResolver Tests run: 10, Failures: 3, Errors: 2, Skipped: 0, Time elapsed: 0.15 sec Testcase: testIssue176WithoutOptionalResolverOptionalEmptyWithMap took 0.079 sec Testcase: testIssue176WithOptionalResolverOptionalEmptyWithMap took 0.003 sec FAILED expected null, but was: junit.framework.AssertionFailedError: expected null, but was: at jakarta.el.TestOptionalELResolver.testIssue176WithOptionalResolverOptionalEmptyWithMap(TestOptionalELResolver.java:188) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) Testcase: testIssue176WithOptionalResolverOptionalPresentWithoutProperty took 0.011 sec Caused an ERROR Cannot convert [Optional[This is an instance of TesterBeanB]] of type [class java.util.Optional] to [class jakarta.el.TesterBeanB] jakarta.el.ELException: Cannot convert [Optional[This is an instance of TesterBeanB]] of type [class java.util.Optional] to [class jakarta.el.TesterBeanB] at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:585) at org.apache.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:46) at jakarta.el.ELContext.convertToType(ELContext.java:319) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192) at jakarta.el.TestOptionalELResolver.testIssue176WithOptionalResolverOptionalPresentWithoutProperty(TestOptionalELResolver.java:128) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) Testcase: testIssue176WithOptionalResolverOptionalEmptyWithProperty took 0.001 sec FAILED expected null, but was: junit.framework.AssertionFailedError: expected null, but was: at jakarta.el.TestOptionalELResolver.testIssue176WithOptionalResolverOptionalEmptyWithProperty(TestOptionalELResolver.java:72) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) Testcase: testIssue176WithOptionalResolverOptionalPresentWithMap took 0.003 sec FAILED expected:<[test]> but was:<[Optional[test]]> junit.framework.AssertionFailedError: expected:<[test]> but was:<[Optional[test]]> at jakarta.el.TestOptionalELResolver.testIssue176WithOptionalResolverOptionalPresentWithMap(TestOptionalELResolver.java:208) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) Testcase: testIssue176WithoutOptionalResolverOptionalPresent took 0.008 sec Testcase: testIssue176WithoutOptionalResolverOptionalEmpty took 0.008 sec Testcase: testIssue176WithOptionalResolverOptionalPresentWithProperty took 0.001 sec Testcase: testIssue176WithOptionalResolverOptionalEmptyWithoutProperty took 0 sec Caused an ERROR Cannot convert [Optional.empty] of type [class java.util.Optional] to [class jakarta.el.TesterBeanB] jakarta.el.ELException: Cannot convert [Optional.empty] of type [class java.util.Optional] to [class jakarta.el.TesterBeanB] at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:585) at org.apache.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:46) at jakarta.el.ELContext.convertToType(ELContext.java:319) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192) at jakarta.el.TestOptionalELResolver.testIssue176WithOptionalResolverOptionalEmptyWithoutProperty(TestOptionalELResolver.java:108) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) Testcase: testIssue176WithoutOptionalResolverOptionalPresentWithMap took 0.001 sec