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);
}
Aggregations