コード例 #1
0
  protected void assertCreateVersion(String parrentVersion, String version) {
    dataStore.createVersion(parrentVersion, version);

    assertHasVersion(version);

    // we should now have a remote branch of this name too
    Collection<String> remoteBranches = RepositoryUtils.getBranches(remote.getRepository());
    System.out.println("Remote branches: " + remoteBranches);
    String remoteBranch = "refs/heads/" + version;
    assertTrue(
        "Should contain " + remoteBranch + " but has remote branches " + remoteBranches,
        remoteBranches.contains(remoteBranch));
  }