Search in sources :

Example 6 with ServerDTO

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

the class SettingsParserTest method testServerSelectionWithTrust.

public void testServerSelectionWithTrust() throws Exception {
    SettingsDTO settings = getSettings("server-trust-selection.xml");
    assertEquals(1, settings.servers.size());
    ServerDTO p = settings.servers.get(0);
    assertEquals("httpbin.org", p.id);
    assertNotNull(p.trust);
}
Also used : ServerDTO(aQute.bnd.connection.settings.ServerDTO) SettingsDTO(aQute.bnd.connection.settings.SettingsDTO)

Aggregations

ServerDTO (aQute.bnd.connection.settings.ServerDTO)6 ConnectionSettings (aQute.bnd.connection.settings.ConnectionSettings)4 HttpClient (aQute.bnd.http.HttpClient)4 Processor (aQute.bnd.osgi.Processor)4 TaggedData (aQute.bnd.service.url.TaggedData)3 URL (java.net.URL)3 ProxyDTO (aQute.bnd.connection.settings.ProxyDTO)2 SettingsDTO (aQute.bnd.connection.settings.SettingsDTO)2 File (java.io.File)1