Code example for Properties

Methods: setProperty

0
        assertExpectedFileEqualsString("reference/test-jsptaglibs.txt", resp.toString());
    } 
 
    private static class MockServletConfig 
        implements ServletConfig, ServletContext { 
        private final Properties initParams = new Properties();
        private final Hashtable attributes = new Hashtable();
 
        MockServletConfig() { 
            initParams.setProperty("TemplatePath", "/template/");
            initParams.setProperty("NoCache", "true");
            initParams.setProperty("TemplateUpdateInterval", "0");
            initParams.setProperty("DefaultEncoding", "UTF-8");
            initParams.setProperty("ObjectWrapper", "beans");
        } 
 
        public String getInitParameter(String name) {
            return initParams.getProperty(name);
        } 
 
        public Enumeration getInitParameterNames() {