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));
}
Aggregations