@@ -121,23 +121,23 @@ void moveRegularFileBetweenNestedDirectories() throws IOException {
121121 var file = Files .createFile (child1 .resolve ("file.txt" ));
122122
123123 var parentWatchBookkeeper = new TestHelper .Bookkeeper ();
124- var parentWatchConfig = Watcher
125- .watch (parent , WatchScope .PATH_AND_ALL_DESCENDANTS )
124+ var parentWatchConfig = Watch
125+ .build (parent , WatchScope .PATH_AND_ALL_DESCENDANTS )
126126 .on (parentWatchBookkeeper );
127127
128128 var child1WatchBookkeeper = new TestHelper .Bookkeeper ();
129- var child1WatchConfig = Watcher
130- .watch (child1 , WatchScope .PATH_AND_CHILDREN )
129+ var child1WatchConfig = Watch
130+ .build (child1 , WatchScope .PATH_AND_CHILDREN )
131131 .on (child1WatchBookkeeper );
132132
133133 var child2WatchBookkeeper = new TestHelper .Bookkeeper ();
134- var child2WatchConfig = Watcher
135- .watch (child2 , WatchScope .PATH_AND_CHILDREN )
134+ var child2WatchConfig = Watch
135+ .build (child2 , WatchScope .PATH_AND_CHILDREN )
136136 .on (child2WatchBookkeeper );
137137
138138 var fileWatchBookkeeper = new TestHelper .Bookkeeper ();
139- var fileWatchConfig = Watcher
140- .watch (file , WatchScope .PATH_ONLY )
139+ var fileWatchConfig = Watch
140+ .build (file , WatchScope .PATH_ONLY )
141141 .on (fileWatchBookkeeper );
142142
143143 try (var parentWatch = parentWatchConfig .start ();
0 commit comments