Package org.eclipse.jgit.transport.OpenSshConfig

Examples of org.eclipse.jgit.transport.OpenSshConfig.Host


    assertEquals(2222, h.getPort());
    assertEquals(new File(home, ".ssh/id_jex"), h.getIdentityFile());
  }

  public void testAlias_PreferredAuthenticationsDefault() throws Exception {
    final Host h = osc.lookup("orcz");
    assertNotNull(h);
    assertNull(h.getPreferredAuthentications());
  }
View Full Code Here


    assertNull(h.getPreferredAuthentications());
  }

  public void testAlias_PreferredAuthentications() throws Exception {
    config("Host orcz\n" + "\tPreferredAuthentications publickey\n");
    final Host h = osc.lookup("orcz");
    assertNotNull(h);
    assertEquals("publickey", h.getPreferredAuthentications());
  }
View Full Code Here

  }

  public void testAlias_InheritPreferredAuthentications() throws Exception {
    config("Host orcz\n" + "\tHostName repo.or.cz\n" + "\n" + "Host *\n"
        + "\tPreferredAuthentications publickey, hostbased\n");
    final Host h = osc.lookup("orcz");
    assertNotNull(h);
    assertEquals("publickey,hostbased", h.getPreferredAuthentications());
  }
View Full Code Here

    assertNotNull(h);
    assertEquals("publickey,hostbased", h.getPreferredAuthentications());
  }

  public void testAlias_BatchModeDefault() throws Exception {
    final Host h = osc.lookup("orcz");
    assertNotNull(h);
    assertEquals(false, h.isBatchMode());
  }
View Full Code Here

    assertEquals(false, h.isBatchMode());
  }

  public void testAlias_BatchModeYes() throws Exception {
    config("Host orcz\n" + "\tBatchMode yes\n");
    final Host h = osc.lookup("orcz");
    assertNotNull(h);
    assertEquals(true, h.isBatchMode());
  }
View Full Code Here

  }

  public void testAlias_InheritBatchMode() throws Exception {
    config("Host orcz\n" + "\tHostName repo.or.cz\n" + "\n" + "Host *\n"
        + "\tBatchMode yes\n");
    final Host h = osc.lookup("orcz");
    assertNotNull(h);
    assertEquals(true, h.isBatchMode());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.transport.OpenSshConfig.Host

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.