99import io .github .computerdaddyguy .jfiletreeprettyprinter .cli .options .OptionsLoader ;
1010import io .github .computerdaddyguy .jfiletreeprettyprinter .options .ChildLimits ;
1111import io .github .computerdaddyguy .jfiletreeprettyprinter .options .PathMatchers ;
12+ import io .github .computerdaddyguy .jfiletreeprettyprinter .options .PrettyPrintOptions ;
1213import java .io .ByteArrayOutputStream ;
13- import java .io .IOException ;
1414import java .io .PrintStream ;
1515import java .nio .file .Path ;
1616import java .util .function .Consumer ;
@@ -53,7 +53,7 @@ private void runErrorTest(FileTreePrettyPrinterCommandLine cli, String[] args, C
5353 }
5454
5555 @ Test
56- void no_options () throws IOException {
56+ void no_options () {
5757 String targetPath = "src/test/resources/cli/base" ;
5858 String optionsPath = null ;
5959 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -68,7 +68,7 @@ void no_options() throws IOException {
6868 }
6969
7070 @ Test
71- void unexisting_options () throws IOException {
71+ void unexisting_options () {
7272 String targetPath = "src/test/resources/cli/base" ;
7373 String optionsPath = "not_existing" ;
7474 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -82,7 +82,7 @@ void unexisting_options() throws IOException {
8282 }
8383
8484 @ Test
85- void malformed_options () throws IOException {
85+ void malformed_options () {
8686 String targetPath = "src/test/resources/cli/base" ;
8787 String optionsPath = "src/test/resources/cli/options/malformed.yaml" ;
8888 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -96,7 +96,7 @@ void malformed_options() throws IOException {
9696 }
9797
9898 @ Test
99- void invalid_options () throws IOException {
99+ void invalid_options () {
100100 String targetPath = "src/test/resources/cli/base" ;
101101 String optionsPath = "src/test/resources/cli/options/invalid.yaml" ;
102102 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -116,7 +116,7 @@ void invalid_options() throws IOException {
116116 class Emojis {
117117
118118 @ Test
119- void emojis () throws IOException {
119+ void nominal () {
120120 String targetPath = "src/test/resources/cli/base" ;
121121 String optionsPath = "src/test/resources/cli/options/emojis.yaml" ;
122122 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -126,7 +126,7 @@ void emojis() throws IOException {
126126 var cli = new FileTreePrettyPrinterCommandLine (output , optionsLoader , exHandler );
127127
128128 var ref = FileTreePrettyPrinter .builder ()
129- .customizeOptions (options -> options . withDefaultEmojis () )
129+ .customizeOptions (PrettyPrintOptions :: withDefaultEmojis )
130130 .build ();
131131
132132 runSuccessTest (cli , args , ref , targetPath );
@@ -138,7 +138,7 @@ void emojis() throws IOException {
138138 class CompactDirectories {
139139
140140 @ Test
141- void emojis () throws IOException {
141+ void nominal () {
142142 String targetPath = "src/test/resources/cli/base" ;
143143 String optionsPath = "src/test/resources/cli/options/compactDirectories.yaml" ;
144144 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -160,7 +160,7 @@ void emojis() throws IOException {
160160 class MaxDepth {
161161
162162 @ Test
163- void emojis () throws IOException {
163+ void nominal () {
164164 String targetPath = "src/test/resources/cli/base" ;
165165 String optionsPath = "src/test/resources/cli/options/maxDepth.yaml" ;
166166 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -182,7 +182,7 @@ void emojis() throws IOException {
182182 class ChildLimit {
183183
184184 @ Test
185- void static_limit () throws IOException {
185+ void static_limit () {
186186 String targetPath = "src/test/resources/cli/base" ;
187187 String optionsPath = "src/test/resources/cli/options/childLimit_static.yaml" ;
188188 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -199,7 +199,7 @@ void static_limit() throws IOException {
199199 }
200200
201201 @ Test
202- void dynamic_limit_glob () throws IOException {
202+ void dynamic_limit_glob () {
203203 String targetPath = "src/test/resources/cli/base" ;
204204 String optionsPath = "src/test/resources/cli/options/childLimit_dynamic_glob.yaml" ;
205205 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -220,7 +220,7 @@ void dynamic_limit_glob() throws IOException {
220220 }
221221
222222 @ Test
223- void dynamic_limit_everything () throws IOException {
223+ void dynamic_limit_everything () {
224224 String targetPath = "src/test/resources/cli/base" ;
225225 String optionsPath = "src/test/resources/cli/options/childLimit_dynamic_everything.yaml" ;
226226 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -240,7 +240,7 @@ void dynamic_limit_everything() throws IOException {
240240 }
241241
242242 @ Test
243- void dynamic_limit_allOf () throws IOException {
243+ void dynamic_limit_allOf () {
244244 String targetPath = "src/test/resources/cli/base" ;
245245 String optionsPath = "src/test/resources/cli/options/childLimit_dynamic_allOf.yaml" ;
246246 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -261,7 +261,7 @@ void dynamic_limit_allOf() throws IOException {
261261 }
262262
263263 @ Test
264- void dynamic_limit_anyOf () throws IOException {
264+ void dynamic_limit_anyOf () {
265265 String targetPath = "src/test/resources/cli/base" ;
266266 String optionsPath = "src/test/resources/cli/options/childLimit_dynamic_anyOf.yaml" ;
267267 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -282,7 +282,7 @@ void dynamic_limit_anyOf() throws IOException {
282282 }
283283
284284 @ Test
285- void dynamic_limit_noneOf () throws IOException {
285+ void dynamic_limit_noneOf () {
286286 String targetPath = "src/test/resources/cli/base" ;
287287 String optionsPath = "src/test/resources/cli/options/childLimit_dynamic_noneOf.yaml" ;
288288 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -308,7 +308,7 @@ void dynamic_limit_noneOf() throws IOException {
308308 class Filter {
309309
310310 @ Test
311- void nominal () throws IOException {
311+ void nominal () {
312312 String targetPath = "src/test/resources/cli/base" ;
313313 String optionsPath = "src/test/resources/cli/options/filter.yaml" ;
314314 String [] args = buildCliArgs (targetPath , optionsPath );
@@ -331,7 +331,7 @@ void nominal() throws IOException {
331331 class LineExtensions {
332332
333333 @ Test
334- void nominal () throws IOException {
334+ void nominal () {
335335 String targetPath = "src/test/resources/cli/base" ;
336336 String optionsPath = "src/test/resources/cli/options/lineExtensions.yaml" ;
337337 String [] args = buildCliArgs (targetPath , optionsPath );
0 commit comments