public void testPathMode() throws Exception {
  pathModes(F.t("/dir1",PROXY),F.t("/dir2",DUAL_SYNC),F.t("/dir3",PRIMARY),F.t("/dir4",PRIMARY));
  mode=DUAL_ASYNC;
  setSecondaryFs=true;
  startUp();
  checkMode("/dir",DUAL_ASYNC);
  checkMode("/dir1",PROXY);
  checkMode("/dir2",DUAL_SYNC);
  checkMode("/dir3",PRIMARY);
  checkMode("/somedir/dir3",DUAL_ASYNC);
  checkMode("/dir4",PRIMARY);
  checkMode("/dir4/subdir",PRIMARY);
  checkMode("/somedir/dir4",DUAL_ASYNC);
  checkMode("/somedir/dir4/subdir",DUAL_ASYNC);
}

public void testPathMode ( ) throws Exception { pathModes ( F . t ( "/dir1" , PROXY ) , F . t ( "/dir2" , DUAL_SYNC ) , F . t ( "/dir3" , PRIMARY ) , F . t ( "/dir4" , PRIMARY ) ) ; mode = DUAL_ASYNC ; setSecondaryFs = true ; startUp ( ) ; checkMode ( "/dir" , DUAL_ASYNC ) ; checkMode ( "/dir1" , PROXY ) ; checkMode ( "/dir2" , DUAL_SYNC ) ; checkMode ( "/dir3" , PRIMARY ) ; checkMode ( "/somedir/dir3" , DUAL_ASYNC ) ; checkMode ( "/dir4" , PRIMARY ) ; checkMode ( "/dir4/subdir" , PRIMARY ) ; checkMode ( "/somedir/dir4" , DUAL_ASYNC ) ; checkMode ( "/somedir/dir4/subdir" , DUAL_ASYNC ) ; }
ensure that modes are resolved correctly when path modes are set .
