Code example for SSLSocketFactory

Methods: createSocket

0
            e.printStackTrace();
            noFreePort = true;
            return; 
        } 
        try { 
            soc = (SSLSocket) sf.createSocket("localhost", port);
        } catch (IOException e) {
            noSocket = true;
        } 
 
    } 
 
    /* 
     * @see TestCase#tearDown() 
     */ 
    @Override 
    protected void tearDown() throws Exception { 
        super.tearDown(); 
        if (ss != null) {
            ss.close();
        }