Package algorithm

Examples of algorithm.Finder.Find()


  @Test
  public void Returns_Empty_Results_When_Given_Empty_List() {
    List<Thing> list = new ArrayList<Thing>();
    Finder finder = new Finder(list);

    F result = finder.Find(FT.One);
    assertEquals(null, result.P1);

    assertEquals(null, result.P2);
  }
View Full Code Here


    List<Thing> list = new ArrayList<Thing>();
    list.add(sue);

    Finder finder = new Finder(list);

    F result = finder.Find(FT.One);

    assertEquals(null, result.P1);
    assertEquals(null, result.P2);
  }
View Full Code Here

    List<Thing> list = new ArrayList<Thing>();
    list.add(sue);
    list.add(greg);
    Finder finder = new Finder(list);

    F result = finder.Find(FT.One);

    assertEquals(sue, result.P1);
    assertEquals(greg, result.P2);
  }
View Full Code Here

    list.add(mike);
    list.add(greg);

    Finder finder = new Finder(list);

    F result = finder.Find(FT.Two);

    assertEquals(greg, result.P1);
    assertEquals(mike, result.P2);
  }
View Full Code Here

    list.add(sarah);
    list.add(mike);
    list.add(greg);
    Finder finder = new Finder(list);

    F result = finder.Find(FT.Two);

    assertEquals(sue, result.P1);
    assertEquals(sarah, result.P2);
  }
View Full Code Here

    list.add(mike);
    list.add(greg);

    Finder finder = new Finder(list);

    F result = finder.Find(FT.One);

    assertEquals(sue, result.P1);
    assertEquals(greg, result.P2);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.