File tree Expand file tree Collapse file tree 1 file changed +21
-23
lines changed
src/test/java/com/arangodb/util Expand file tree Collapse file tree 1 file changed +21
-23
lines changed Original file line number Diff line number Diff line change 2020import java .io .IOException ;
2121import java .io .InputStreamReader ;
2222import java .util .ArrayList ;
23- import java .util .Collection ;
24- import java .util .HashSet ;
2523import java .util .List ;
26- import java .util .Set ;
2724
2825import com .arangodb .Station ;
2926
3229 *
3330 */
3431public class TestUtils {
35-
36- public static List <Station > readStations () throws IOException {
37-
38- ArrayList <Station > stations = new ArrayList <Station >(1000 );
39- BufferedReader br = new BufferedReader (new InputStreamReader (TestUtils .class .getResourceAsStream ("/test-data/jp-tokyo-station.tsv" ), "utf-8" ));
40- String line = null ;
41- while ((line = br .readLine ()) != null ) {
42- line = line .trim ();
43- if (line .length () == 0 ) {
44- continue ;
45- }
46- Station station = new Station (line .split (" " , -1 ));
47- stations .add (station );
48- }
49- br .close ();
50-
51- return stations ;
52-
53- }
54-
32+
33+ public static List <Station > readStations () throws IOException {
34+
35+ ArrayList <Station > stations = new ArrayList <Station >(1000 );
36+ BufferedReader br = new BufferedReader (
37+ new InputStreamReader (TestUtils .class .getResourceAsStream ("/test-data/jp-tokyo-station.tsv" ), "utf-8" ));
38+ String line = null ;
39+ while ((line = br .readLine ()) != null ) {
40+ line = line .trim ();
41+ if (line .length () == 0 ) {
42+ continue ;
43+ }
44+ Station station = new Station (line .split (" " , -1 ));
45+ stations .add (station );
46+ }
47+ br .close ();
48+
49+ return stations ;
50+
51+ }
52+
5553}
You can’t perform that action at this time.
0 commit comments