Package com.github.couchapptakeout

Source Code of com.github.couchapptakeout.DefaultCouchManagerTest

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package com.github.couchapptakeout;

import com.github.couchapptakeout.events.utils.DefaultUnzipper;
import org.junit.Test;
import static org.junit.Assert.*;

/**
*
* @author ryan.ramage
*/
public class DefaultCouchManagerTest {

    public DefaultCouchManagerTest() {
    }

     Boolean complete = false;




    @Test
    public void testFindFreePort() throws Exception{
        int port = DefaultCouchManager.findFreePort();
        System.out.println("Port: " + port);
        assertTrue(port > 0);
    }


    public void testInstallCouchDbEmbedded() throws CouchDbInstallException {
        DefaultCouchManager manager = new DefaultCouchManager();
        BasicCouchDownloader bcd = new BasicCouchDownloader("http://couchdb-binary-releases.googlecode.com/svn/trunk");
        DefaultUnzipper unzipper = new DefaultUnzipper();
        manager.setCouchDownloader(bcd);
        manager.setUnzipper(unzipper);

        manager.installCouchDbEmbedded();
    }


}
TOP

Related Classes of com.github.couchapptakeout.DefaultCouchManagerTest

TOP
Copyright © 2018 www.massapi.com. 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.