Class ELClientIT

java.lang.Object
ee.jakarta.tck.el.api.expressionfactory.ELClientIT

public class ELClientIT extends Object
  • Constructor Details

    • ELClientIT

      public ELClientIT()
  • Method Details

    • cleanup

      @AfterEach public void cleanup() throws Exception
      Throws:
      Exception
    • newInstanceTest

      @Test public void newInstanceTest() throws Exception
      Throws:
      Exception
      Test Name:
      newInstanceTest
      Assertion IDs:
      EL:JAVADOC:119; EL:JAVADOC:120
      Test Strategy:
      Verify that an ExpressionFactory can be instantiated with the newInstance() API.
    • createValueExpressionTest

      @Test public void createValueExpressionTest() throws Exception
      Throws:
      Exception
      Test Name:
      createValueExpressionTest
      Assertion IDs:
      EL:JAVADOC:63
      Test Strategy:
      Verify that the ExpressionFactory can handle the types of input specified in the javadoc when invoking the createValueExpression(ELContext, String, Class) method.
    • createValueExpression2Test

      @Test public void createValueExpression2Test() throws Exception
      Throws:
      Exception
      Test Name:
      createValueExpression2Test
      Assertion IDs:
      EL:JAVADOC:64
      Test Strategy:
      Verify the functionality of the createValueExpression(Object, Class) method.
    • createValueExpressionELExceptionTest

      @Test public void createValueExpressionELExceptionTest() throws Exception
      Throws:
      Exception
      Test Name:
      createValueExpressionELExceptionTest
      Assertion IDs:
      EL:JAVADOC:63
      Test Strategy:
      Verify that ExpressionFactory.createValueExpression(ELContext, String, Class) throws an ELException for mixed delimiter expressions and expressions with syntactical errors.
    • createMethodExpressionTest

      @Test public void createMethodExpressionTest() throws Exception
      Throws:
      Exception
      Test Name:
      createMethodExpressionTest
      Assertion IDs:
      EL:JAVADOC:62
      Test Strategy:
      Verify that the ExpressionFactory can handle the types of input specified in the javadoc when invoking the createMethodExpression(ELContext, String, Class) method, with the restriction that only expressions that share the same syntax as an lvalue are allowed (EL Spec 1.2.1.2).
    • createMethodExpressionELExceptionTest

      @Test public void createMethodExpressionELExceptionTest() throws Exception
      Throws:
      Exception
      Test Name:
      createMethodExpressionELExceptionTest
      Assertion IDs:
      EL:JAVADOC:63; EL:JAVADOC:253
      Test Strategy:
      Verify that ExpressionFactory.createMethodExpression() throws an ELException for expressions with syntactical errors, and for expressions that are not lvalues.
    • createExpressionNPETest

      @Test public void createExpressionNPETest() throws Exception
      Throws:
      Exception
      Test Name:
      createExpressionNPETest
      Assertion IDs:
      EL:JAVADOC:62; EL:JAVADOC:63; EL:JAVADOC:64; EL:JAVADOC:253; EL:JAVADOC:254; EL:JAVADOC:256
      Test Strategy:
      Verify that ExpressionFactory.createValueExpression() and ExpressionFactory.createMethodExpression() throw a NullPointerException under the conditions stated in the javadoc.
    • coerceToTypeTest

      @Test public void coerceToTypeTest() throws Exception
      Throws:
      Exception
      Test Name:
      coerceToTypeTest
      Assertion IDs:
      EL:JAVADOC:61
      Test Strategy:
      Verify that the coerceToType() method coerces an object to a specific type according to the EL type conversion rules.
    • coerceToTypeELExceptionTest

      @Test public void coerceToTypeELExceptionTest() throws Exception
      Throws:
      Exception
      Test Name:
      coerceToTypeELExceptionTest
      Assertion IDs:
      EL:JAVADOC:61; EL:JAVADOC:251
      Test Strategy:
      Verify that the coerceToType() method throws an ELException for invalid type conversions.