Package com.google.devtools.moe.client.repositories

Examples of com.google.devtools.moe.client.repositories.RevisionGraph$Builder


  }

  public void testMakeResult() throws Exception {
    Revision startingRev = new Revision("1003", "repo1");
    List<Revision> matching = ImmutableList.of(new Revision("1002", "repo1"));
    RevisionGraph nonMatching = RevisionGraph.builder(matching)
        .addRevision(startingRev, new RevisionMetadata("id", "author", "date", "desc", matching))
        .build();

    EquivalenceMatchResult result = equivalenceMatcher.makeResult(nonMatching, matching);
    assertEquals(nonMatching, result.getRevisionsSinceEquivalence());
View Full Code Here


    @Override
    public <T> T findRevisions(Revision revision, RevisionMatcher<T> matcher) {
      if (revision == null) {
        revision = new Revision("migrated_to", name);
      }
      RevisionGraph revTree = RevisionGraph.builder(ImmutableList.of(revision))
          .addRevision(revision, getMetadata(revision))
          .build();
      return matcher.makeResult(revTree, ImmutableList.of(new Revision("1", name)));
    }
View Full Code Here

TOP

Related Classes of com.google.devtools.moe.client.repositories.RevisionGraph$Builder

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.