package search.tree;//  Copyright 2016 The Sawdust Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

import org.junit.Assert;
import org.junit.Test;

import java.io.File;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;

public class FileTreeRecursionTest {

    @Test(timeout = 100L, expected = Test.None.class)
    public void test() {
        try {
            List<File> r = new LinkedList<>();
            FileTreeRecursion.find(new File("../").getCanonicalFile() , "BUCK", r);
            Assert.assertEquals(r.get(0).getName(), "BUCK");
        } catch (IOException e) {
            //
        }
    }
}

@@ -647,137 +647,10 @@
 nit.
-Assert;%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.util.LinkedList;%0Aimport java.util.Li
+Te
 st;%0A
@@ -711,16 +711,19 @@
 ut = 100
+000
 L, expec
@@ -766,24 +766,26 @@
 id test() %7B%0A
+//
         try 
@@ -786,16 +786,99 @@
   try %7B%0A
+//            String find = %22BUCK%22;%0A//            File from = new File(%22./../%22);%0A//
         
@@ -916,16 +916,18 @@
 st%3C%3E();%0A
+//
         
@@ -957,23 +957,12 @@
 ind(
-new File(%22../%22)
+from
 .get
@@ -980,23 +980,24 @@
 le()
- 
 , 
-%22BUCK%22
+find
 , r);%0A
+//  
     
@@ -1006,59 +1006,105 @@
     
-  Assert.assertEquals(r.get(0).getName(), %22BUCK%22);%0A
+for (File f : r) %7B%0A//                System.out.println(f.getCanonicalPath());%0A//            %7D%0A//
     
@@ -1133,16 +1133,18 @@
 on e) %7B%0A
+//
         
@@ -1150,16 +1150,18 @@
      //%0A
+//
         

Comment find() with line comment