View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  
18  package org.apache.commons.io.file;
19  
20  import java.util.stream.Stream;
21  
22  import org.junit.jupiter.params.provider.Arguments;
23  
24  class TestArguments {
25  
26      static Stream<Arguments> cleaningPathVisitors() {
27          // @formatter:off
28          return Stream.of(
29            Arguments.of(CleaningPathVisitor.withBigIntegerCounters()),
30            Arguments.of(CleaningPathVisitor.withLongCounters()));
31          // @formatter:on
32      }
33  
34      static Stream<Arguments> countingPathVisitors() {
35          // @formatter:off
36          return Stream.of(
37            Arguments.of(CountingPathVisitor.withBigIntegerCounters()),
38            Arguments.of(CountingPathVisitor.withLongCounters()));
39          // @formatter:on
40      }
41  
42      static Stream<Arguments> deletingPathVisitors() {
43          // @formatter:off
44          return Stream.of(
45            Arguments.of(DeletingPathVisitor.withBigIntegerCounters()),
46            Arguments.of(DeletingPathVisitor.withLongCounters()));
47          // @formatter:on
48      }
49  
50      static Stream<Arguments> numberCounters() {
51          // @formatter:off
52          return Stream.of(
53            Arguments.of(Counters.longCounter()),
54            Arguments.of(Counters.bigIntegerCounter()));
55          // @formatter:on
56      }
57  
58      static Stream<Arguments> pathCounters() {
59          // @formatter:off
60          return Stream.of(
61            Arguments.of(Counters.longPathCounters()),
62            Arguments.of(Counters.bigIntegerPathCounters()));
63          // @formatter:on
64      }
65  }