private void testFindMailboxWithPathLike() throws Exception {
  LOG.info("findMailboxWithPathLike");
  MailboxPath path=pathsList.get(pathsList.size() / 2);
  List<Mailbox> result=mapper.findMailboxWithPathLike(path);
  assertEquals(1,result.size());
  int start=3;
  int end=7;
  MailboxPath newPath;
  for (int i=start; i < end; i++) {
    newPath=new MailboxPath(path);
    newPath.setName(i + newPath.getName() + " "+ i);
    if (i % 2 == 0) {
      newPath.setUser(null);
    }
    addMailbox(new HBaseMailbox(newPath,1234));
  }
  result=mapper.findMailboxWithPathLike(path);
  assertEquals(end - start + 1,result.size());
}

private void testFindMailboxWithPathLike ( ) throws Exception { LOG . info ( "findMailboxWithPathLike" ) ; MailboxPath path = pathsList . get ( pathsList . size ( ) / 2 ) ; List < Mailbox > result = mapper . findMailboxWithPathLike ( path ) ; assertEquals ( 1 , result . size ( ) ) ; int start = 3 ; int end = 7 ; MailboxPath newPath ; for ( int i = start ; i < end ; i ++ ) { newPath = new MailboxPath ( path ) ; newPath . setName ( i + newPath . getName ( ) + " " + i ) ; if ( i % 2 == 0 ) { newPath . setUser ( null ) ; } addMailbox ( new HBaseMailbox ( newPath , 1234 ) ) ; } result = mapper . findMailboxWithPathLike ( path ) ; assertEquals ( end - start + 1 , result . size ( ) ) ; }
test of findmailboxwithpathlike method , of class hbasemailboxmapper .
