Package com.volantis.testtools.config

Examples of com.volantis.testtools.config.ConfigValuePolicyCache


     * NOTE: Uses intropection to call the (usually) private method
     * {@link VolantisInternals#getPolicyCacheConfiguration}.
     */
    private void checkPolicyCacheProperties(final String policy,
            ConfigValue config) throws Exception {
        ConfigValuePolicyCache cache = (ConfigValuePolicyCache)
                config.policyCaches.get(policy);

        // We have implemented VolantisInternals as a workaround rather than
        // use the commented code below to get around a bug to do with
        // reflection in the IBM JDK 1.4.1.
View Full Code Here


        checker.setAppConf(new MinimalXmlRepositoryAppConfigurator() {
            public void setUp(ConfigValue config) throws Exception {
                // Include minimal requirements for dummy XML repository.
                super.setUp(config);
                // Add in the theme cache stuff
                ConfigValuePolicyCache cache = new ConfigValuePolicyCache();
                cache.policyType = PolicyType.THEME;
                cache.strategy = "least-recently-used";
                cache.maxEntries = new Integer(1111);
                cache.timeout = new Integer(2222);
                config.policyCaches.put("theme-cache", cache);
View Full Code Here

TOP

Related Classes of com.volantis.testtools.config.ConfigValuePolicyCache

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.