Package com.subgraph.orchid.config

Examples of com.subgraph.orchid.config.TorConfigBridgeLine


    final HexDigest fp = HexDigest.createFromString("0EA20CAA3CE696E561BC08B15E00106700E8F682");
    config.addBridge(a1, 88);
    config.addBridge(a2, 101, fp);
    List<TorConfigBridgeLine> bs = config.getBridges();
    assertEquals(2, bs.size());
    final TorConfigBridgeLine b1 = bs.get(0);
    final TorConfigBridgeLine b2 = bs.get(1);
   
    assertEquals(a1, b1.getAddress());
    assertEquals(a2, b2.getAddress());
    assertEquals(88, b1.getPort());
    assertEquals(101, b2.getPort());
    assertNull(b1.getFingerprint());
    assertSame(b2.getFingerprint(), fp);
  }
View Full Code Here

TOP

Related Classes of com.subgraph.orchid.config.TorConfigBridgeLine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.