Hi
i have written 4
JUnit Test cases. 1st test calls our one main method of another class where the some file processing happens. in Success case all these files (10 files ) moves to Success dir (in JUnit test case 3rd, i am checking this ). If some of fiels fails in processing it moves to ERROR dir (in JUnit test case 2nd, i am checking this).
But problem is, In Success directory there could be previously processed files. so to find latest created folder in this Success folder i am ussing following code.
problem is i am not getting name of recently created folder in the list at line 1 , bcz of this my 3rd test is failing. Please advice me on it. old folder name is coming as value of lastMod varaible
Thanks in advanced