Search in sources :

Example 6 with SettingsDTO

use of aQute.bnd.connection.settings.SettingsDTO in project bnd by bndtools.

the class SettingsParserTest method testNonProxyHost.

public void testNonProxyHost() throws Exception {
    SettingsDTO settings = getSettings("socks-auth-nonproxyhosts.xml");
    assertEquals(1, settings.proxies.size());
    ProxyDTO p = settings.proxies.get(0);
    assertEquals("myproxy", p.id);
    assertEquals(true, p.active);
    assertEquals(Type.SOCKS, p.protocol);
    assertEquals(1080, p.port);
    assertEquals("*.google.com|ibiblio.org", p.nonProxyHosts);
    assertEquals(null, p.username);
    assertEquals(null, p.password);
}
Also used : ProxyDTO(aQute.bnd.connection.settings.ProxyDTO) SettingsDTO(aQute.bnd.connection.settings.SettingsDTO)

Aggregations

SettingsDTO (aQute.bnd.connection.settings.SettingsDTO)6 ProxyDTO (aQute.bnd.connection.settings.ProxyDTO)3 ServerDTO (aQute.bnd.connection.settings.ServerDTO)2 SettingsParser (aQute.bnd.connection.settings.SettingsParser)1 File (java.io.File)1