Package com.google.devtools.depan.filters.RelationCountMatcher

Examples of com.google.devtools.depan.filters.RelationCountMatcher.IncludeEquals


  // Zero is somewhat a special case, so ensure that we get this one right
  public void testNextMatch_zero() {
    TestData testData = new TestData(5, true, true);

    EdgeCountPredicate countTest = new IncludeEquals(0);
    RelationCountMatcher forwardMatcher =
        new RelationCountMatcher(testData.countSet, countTest, null);

    Collection<GraphNode> forwardMatch = testData.matchNodes(forwardMatcher);
    assertEquals(1, forwardMatch.size());
View Full Code Here


  }

  public void testNextMatch_equals() {
    TestData testData = new TestData(5, true, true);

    EdgeCountPredicate countTest = new IncludeEquals(2);
    RelationCountMatcher forwardMatcher =
        new RelationCountMatcher(testData.countSet, countTest, null);

    Collection<GraphNode> forwardMatch = testData.matchNodes(forwardMatcher);
    assertEquals(1, forwardMatch.size());
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.filters.RelationCountMatcher.IncludeEquals

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.