Search in sources :

Example 1 with StreamELResolverImpl

use of org.apache.el.stream.StreamELResolverImpl in project tomcat by apache.

the class TestJasperELResolver method doTestConstructor.

private void doTestConstructor(int count) throws Exception {
    List<ELResolver> list = new ArrayList<>();
    for (int i = 0; i < count; i++) {
        list.add(new ImplicitObjectELResolver());
    }
    JasperELResolver resolver = new JasperELResolver(list, new StreamELResolverImpl());
    Assert.assertEquals(Integer.valueOf(count), getField("appResolversSize", resolver));
    Assert.assertEquals(9 + count, ((ELResolver[]) getField("resolvers", resolver)).length);
    Assert.assertEquals(Integer.valueOf(9 + count), getField("size", resolver));
}
Also used : ImplicitObjectELResolver(javax.servlet.jsp.el.ImplicitObjectELResolver) ELResolver(javax.el.ELResolver) ImplicitObjectELResolver(javax.servlet.jsp.el.ImplicitObjectELResolver) ArrayList(java.util.ArrayList) StreamELResolverImpl(org.apache.el.stream.StreamELResolverImpl)

Aggregations

ArrayList (java.util.ArrayList)1 ELResolver (javax.el.ELResolver)1 ImplicitObjectELResolver (javax.servlet.jsp.el.ImplicitObjectELResolver)1 StreamELResolverImpl (org.apache.el.stream.StreamELResolverImpl)1