示例#1
0
  public void testFindFilesSubDir() throws Exception {
    Finder f = FinderFactory.getFinder("com.redhat.rhn.common.finder");
    assertNotNull(f);

    List<String> result = f.find(".class");
    assertEquals(6, result.size());
  }
示例#2
0
  public void testFindFiles() throws Exception {
    Finder f = FinderFactory.getFinder("com.redhat.rhn.common.finder.test");
    assertNotNull(f);

    List<String> result = f.find("Test.class");
    String first = result.get(0);
    assertTrue(first.startsWith("com/redhat/rhn/common/finder/test"));
    assertEquals(2, result.size());
  }