@Test(expected = UnsupportedOperationException.class) public void testCreateVariableStringObjectClassOfQ() { replay(factory, request, applicationContext); try { factory.createVariable("myName", "myValue", String.class); } finally { verify(factory, request, applicationContext); } }
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);  }