Package info.jtrac.domain

Examples of info.jtrac.domain.Config


        assertEquals(1, users2.size());
       
    }
   
    public void testConfigStoreAndLoad() {
        Config config = new Config("testParam", "testValue");
        jtrac.storeConfig(config);
        String value = jtrac.loadConfig("testParam");
        assertEquals("testValue", value);
    }
View Full Code Here


        assertEquals(0, jdbcTemplate.queryForInt("select count(0) from user_space_roles where role_key = 'DEFAULT'"));
        assertEquals(1, jdbcTemplate.queryForInt("select count(0) from user_space_roles where role_key = 'NEWDEFAULT'"));
    }
   
    public void testGetItemAsHtmlDoesNotThrowException() {
        Config config = new Config("mail.server.host", "dummyhost");
        jtrac.storeConfig(config);
        // now email sending is switched on
        Space s = getSpace();
        jtrac.storeSpace(s);
        User u = new User();
View Full Code Here

            initSessionTimeout(config.getValue());
        }
    }

    public String loadConfig(String param) {
        Config config = dao.loadConfig(param);
        if (config == null) {
            return null;
        }
        String value = config.getValue();
        if (value == null || value.trim().equals("")) {
            return null;
        }
        return value;
    }
View Full Code Here

            });
        }
       
        @Override
        protected void onSubmit() {
            getJtrac().storeConfig(new Config(param, value));
            setResponsePage(new ConfigListPage(param));
        }
View Full Code Here

            });
        }
       
        @Override
        protected void onSubmit() {
            getJtrac().storeConfig(new Config(param, value));
            setResponsePage(new ConfigListPage(param));
        }
View Full Code Here

TOP

Related Classes of info.jtrac.domain.Config

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.