/* (non-Javadoc)
  * @see de.guruz.p300.webdav.search.client.SearchResultCollector#newResult(de.guruz.p300.hosts.Host, java.util.List)
  */
 public void newResult(Host host, List<RemoteEntity> resultList) {
   assertEquals(SingleHostSearchWorkerTest.getExpectedResult(), ResultType.RESULT);
   called = true;
   assertNotNull(resultList);
   assertEquals(resultList.size(), 1);
   RemoteEntity remoteEntity = resultList.get(0);
   assertNotNull(remoteEntity);
   assertEquals("TestFile", remoteEntity.getName());
   assertEquals(42, remoteEntity.getSize());
   assertTrue(remoteEntity.getPath().endsWith("/TestFile"));
 }
 /* (non-Javadoc)
  * @see de.guruz.p300.webdav.search.client.SearchResultCollector#noResult(de.guruz.p300.hosts.Host)
  */
 public void noResult(Host host) {
   assertEquals(SingleHostSearchWorkerTest.getExpectedResult(), ResultType.NORESULT);
   called = true;
 }
 /* (non-Javadoc)
  * @see de.guruz.p300.webdav.search.client.SearchResultCollector#hasError(de.guruz.p300.hosts.Host, java.lang.String)
  */
 public void hasError(Host host, String msg) {
   assertEquals(SingleHostSearchWorkerTest.getExpectedResult(), ResultType.ERROR);
   called = true;
   assertTrue(msg.startsWith("Could not connect to host"));
 }