Search in sources :

Example 1 with DefaultProtocolSocketFactory

use of org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory in project ecf by eclipse.

the class TestEquals method testProtocolSocketFactory.

public void testProtocolSocketFactory() {
    ProtocolSocketFactory p1 = new DefaultProtocolSocketFactory();
    ProtocolSocketFactory p2 = new DefaultProtocolSocketFactory();
    assertTrue(p1.equals(p2));
    assertTrue(p2.equals(p1));
    p1 = new SSLProtocolSocketFactory();
    p2 = new SSLProtocolSocketFactory();
    assertTrue(p1.equals(p2));
    assertTrue(p2.equals(p1));
}
Also used : ProtocolSocketFactory(org.apache.commons.httpclient.protocol.ProtocolSocketFactory) SSLProtocolSocketFactory(org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory) DefaultProtocolSocketFactory(org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory) DefaultProtocolSocketFactory(org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory) SSLProtocolSocketFactory(org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory)

Example 2 with DefaultProtocolSocketFactory

use of org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory in project ecf by eclipse.

the class TestEquals method testProtocol.

public void testProtocol() {
    Protocol p1 = new Protocol("test", new DefaultProtocolSocketFactory(), 123);
    Protocol p2 = new Protocol("test", new DefaultProtocolSocketFactory(), 123);
    assertTrue(p1.equals(p2));
    assertTrue(p2.equals(p1));
}
Also used : DefaultProtocolSocketFactory(org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory) Protocol(org.apache.commons.httpclient.protocol.Protocol)

Aggregations

DefaultProtocolSocketFactory (org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory)2 Protocol (org.apache.commons.httpclient.protocol.Protocol)1 ProtocolSocketFactory (org.apache.commons.httpclient.protocol.ProtocolSocketFactory)1 SSLProtocolSocketFactory (org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory)1