@Test public void testCreateVariableStringObjectNextFactory() { VariableResolverFactory nextFactory = createMock(VariableResolverFactory.class); VariableResolver resolver = createMock(VariableResolver.class); expect(nextFactory.createVariable("myName", "myValue")).andReturn(resolver); replay(factory, request, applicationContext, nextFactory, resolver); factory.setNextFactory(nextFactory); assertEquals(resolver, factory.createVariable("myName", "myValue")); verify(factory, request, applicationContext, nextFactory, resolver); }
public VariableResolver createVariable(String name, Object value) { if (nextFactory != null) { return nextFactory.createVariable(name, value); } throw new UnsupportedOperationException("This variable resolver factory is read only"); }
ReadOnlyVariableResolverFactory extends
        BaseVariableResolverFactory { public VariableResolver createVariable(String name, Object value) { if (nextFactory != null) { return nextFactory.createVariable(name, value); } throw new UnsupportedOperationException("This variable resolver factory is read only"); } }
ReadOnlyVariableResolverFactory extends
        BaseVariableResolverFactory { public VariableResolver createVariable(String name, Object value) { if (nextFactory != null) { return nextFactory.createVariable(name, value); } throw new UnsupportedOperationException("This variable resolver factory is read only"); } ReadOnlyVariableResolverFactory(TilesRequestContextHolder requestHolder); }
ReadOnlyVariableResolverFactory extends
        BaseVariableResolverFactory { public VariableResolver createVariable(String name, Object value) { if (nextFactory != null) { return nextFactory.createVariable(name, value); } throw new UnsupportedOperationException("This variable resolver factory is read only"); } ReadOnlyVariableResolverFactory(TilesRequestContextHolder requestHolder); VariableResolver createVariable(String name, Object value); VariableResolver createVariable(String name, Object value,
            Class<?> type); boolean isResolveable(String name); @Override VariableResolver getVariableResolver(String name); abstract VariableResolver createVariableResolver(String name); }
ReadOnlyVariableResolverFactory extends
        BaseVariableResolverFactory { public VariableResolver createVariable(String name, Object value) { if (nextFactory != null) { return nextFactory.createVariable(name, value); } throw new UnsupportedOperationException("This variable resolver factory is read only"); } ReadOnlyVariableResolverFactory(TilesRequestContextHolder requestHolder); VariableResolver createVariable(String name, Object value); VariableResolver createVariable(String name, Object value,
            Class<?> type); boolean isResolveable(String name); @Override VariableResolver getVariableResolver(String name); abstract VariableResolver createVariableResolver(String name);  }