Methods Summary |
---|
public void | doTestFindOccurences(java.lang.String searchString, int expected)
WebResponse searchPage = conversation.getResponse(config.getSearchJspUrl());
WebForm webForm = searchPage.getForms()[0];
webForm.setParameter("query", searchString);
WebResponse responsePage = webForm.submit();
WebLink[] links = responsePage.getLinks();
assertEquals(expected, links.length);
|
protected void | setUp()
config = new ConfigBean();
|
public void | testFindMany()
doTestFindOccurences("SPIDER", 3);
|
public void | testFindNada()
doTestFindOccurences("nada", 0);
|
public void | testFindOne()
doTestFindOccurences("one", 1);
|