Package org.jconfig.handler

Examples of org.jconfig.handler.ConfigServerHandler


   
    public void testStartServer() {       
        java.net.URL jcfURL = null;
        InputStream is = null;
        try {           
            ConfigServerHandler urlHandler = new ConfigServerHandler();
            urlHandler.setURL(URL+"/config");
            Configuration config = urlHandler.load();
            assertNotNull(config);
            assertEquals("dice",config.getProperty("USER",null,"JDBC"));
        }
        catch ( Exception e ) {
            e.printStackTrace();
View Full Code Here


   
    public void testStartServer() {       
        java.net.URL jcfURL = null;
        InputStream is = null;
        try {           
            ConfigServerHandler urlHandler = new ConfigServerHandler();
            urlHandler.setURL(URL+"/config");
            Configuration config = urlHandler.load();
            assertNotNull(config);
            assertEquals("testuser",config.getProperty("USER",null,"JDBC"));
        }
        catch ( Exception e ) {
            e.printStackTrace();
View Full Code Here

   
    public void testAnotherServer() {       
        java.net.URL jcfURL = null;
        InputStream is = null;
        try {           
            ConfigServerHandler urlHandler = new ConfigServerHandler();
            urlHandler.setURL(URL+"/serverconfig");
            Configuration config = urlHandler.load();
            assertNotNull(config);
            assertEquals("serveruser",config.getProperty("USER",null,"JDBC"));
        }
        catch ( Exception e ) {
            e.printStackTrace();
View Full Code Here

   
    public void testNoFileFound() {       
        java.net.URL jcfURL = null;
        InputStream is = null;
        try {           
            ConfigServerHandler urlHandler = new ConfigServerHandler();
            urlHandler.setURL(URL+"/memyselfandi");
            Configuration config = urlHandler.load();
            fail("exception expected");
        }
        catch ( Exception e ) {           
        }       
    }
View Full Code Here

TOP

Related Classes of org.jconfig.handler.ConfigServerHandler

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.