@@ -105,7 +105,7 @@ void testDoCommandListShortFlag() throws IOException {
105105
106106 assertThat (exitCode ).isEqualTo (0 );
107107 String output = capture .getOut ();
108- assertThat (output .contains ("Available actions:" )). isTrue ( );
108+ assertThat (output ) .contains ("Available actions:" );
109109 }
110110 }
111111
@@ -120,7 +120,7 @@ void testDoCommandListNoActions() throws IOException {
120120
121121 assertThat (exitCode ).isEqualTo (0 );
122122 String output = capture .getOut ();
123- assertThat (output .contains ("No actions defined in app.yml" )). isTrue ( );
123+ assertThat (output ) .contains ("No actions defined in app.yml" );
124124 }
125125 }
126126
@@ -133,7 +133,7 @@ void testDoCommandListNoAppYml() {
133133
134134 assertThat (exitCode ).isEqualTo (0 );
135135 String output = capture .getOut ();
136- assertThat (output .contains ("No actions defined in app.yml" )). isTrue ( );
136+ assertThat (output ) .contains ("No actions defined in app.yml" );
137137 }
138138 }
139139
@@ -147,8 +147,8 @@ void testDoCommandMissingActionName() throws IOException {
147147
148148 assertThat (exitCode ).isEqualTo (1 );
149149 String errorOutput = capture .getErr ();
150- assertThat (errorOutput . contains ( "Action name is required" )). isTrue ();
151- assertThat ( errorOutput .contains ("Use --list to see available actions" )). isTrue ( );
150+ assertThat (errorOutput )
151+ .contains ("Action name is required" , " Use --list to see available actions" );
152152 }
153153 }
154154
@@ -162,10 +162,9 @@ void testDoCommandNonexistentAction() throws IOException {
162162
163163 assertThat (exitCode ).isEqualTo (1 );
164164 String errorOutput = capture .getErr ();
165- assertThat (
166- errorOutput .contains (
167- "Action 'nonexistent' not found in app.yml. Use --list to see available actions." ))
168- .isTrue ();
165+ assertThat (errorOutput )
166+ .contains (
167+ "Action 'nonexistent' not found in app.yml. Use --list to see available actions." );
169168 }
170169 }
171170
@@ -215,7 +214,7 @@ void testAliasWithNonexistentAction() throws IOException {
215214 // Should fail with exit code 1 when action is not found
216215 assertThat (exitCode ).isEqualTo (1 );
217216 String errorOutput = capture .getErr ();
218- assertThat (errorOutput .contains ("Action 'build' not found in app.yml" )). isTrue ( );
217+ assertThat (errorOutput ) .contains ("Action 'build' not found in app.yml" );
219218 }
220219 }
221220
@@ -230,7 +229,7 @@ void testDoWithOutput() throws IOException {
230229 int exitCode = cmd .execute ("do" , "hello" );
231230 assertThat (exitCode >= 0 ).isTrue (); // Should not be negative (internal error)
232231 String output = capture .getOut ();
233- assertThat (output .contains ("Hello World" )). isTrue ( );
232+ assertThat (output ) .contains ("Hello World" );
234233 }
235234 }
236235
@@ -256,12 +255,11 @@ void testDoAliasWithArgs() throws IOException {
256255 assertThat (exitCode ).isEqualTo (0 );
257256 String output = capture .getOut ();
258257 // The run action should execute and include the classpath in the output
259- assertThat (output ).contains ("running... ." ). contains ( "libs" ). contains ( "--foo bar" );
258+ assertThat (output ).contains ("running... ." , "libs" , "--foo bar" );
260259 }
261260 }
262261
263262 private void createAppYml () throws IOException {
264- // Use platform-specific command for simple action that works on both Windows and Unix
265263 String yamlContent =
266264 "dependencies:\n "
267265 + " com.github.lalyos:jfiglet: \" 0.0.9\" \n "
@@ -280,7 +278,6 @@ private void createAppYmlWithoutActions() throws IOException {
280278 }
281279
282280 private void createAppYmlWithoutBuildAction () throws IOException {
283- // Use platform-specific command for simple action that works on both Windows and Unix
284281 String yamlContent =
285282 "dependencies:\n "
286283 + " com.github.lalyos:jfiglet: \" 0.0.9\" \n "
0 commit comments