Package org.rioproject.config

Examples of org.rioproject.config.GroovyConfig


            ServiceElement service = new ServiceElement();
            service.getServiceBeanConfig().setConfigArgs("rio-test.something.something:darkside:config:1.0");
            String[] args = ConfigHelper.getConfigArgs(service);
            Assert.assertNotNull(args);
            Assert.assertEquals(1, args.length);
            Configuration configuration = new GroovyConfig(args, Thread.currentThread().getContextClassLoader());
            Assert.assertNotNull(configuration);
        } finally {
            FileUtils.remove(new File(repo, "rio-test"));
        }
    }
View Full Code Here


        String[] args = ConfigHelper.getConfigArgs(service);
        Assert.assertNotNull(args);
        Assert.assertEquals(1, args.length);
        File file = new File(args[0]);
        Assert.assertTrue(file.exists());
        Configuration configuration = new GroovyConfig(args, Thread.currentThread().getContextClassLoader());
        Assert.assertNotNull(configuration);
    }
View Full Code Here

        String[] args = ConfigHelper.getConfigArgs(service);
        Assert.assertNotNull(args);
        Assert.assertEquals(1, args.length);
        File file = new File(args[0]);
        Assert.assertFalse(file.exists());
        Configuration configuration = new GroovyConfig(args, Thread.currentThread().getContextClassLoader());
        Assert.assertNotNull(configuration);
    }
View Full Code Here

    public void testUsingMissingGroovyFile() throws IOException {
        ServiceElement service = new ServiceElement();
        service.getServiceBeanConfig().setConfigArgs("file:foo");
        String[] args = ConfigHelper.getConfigArgs(service);
        Assert.assertNotNull(args);
        Configuration configuration = new GroovyConfig(args, Thread.currentThread().getContextClassLoader());
        Assert.assertNotNull(configuration);
    }
View Full Code Here

TOP

Related Classes of org.rioproject.config.GroovyConfig

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.