@@ -113,11 +113,11 @@ public void Download_Http403Error_LogsStatusCodeAndEndpoint() throws IOException
113113
114114 assertAll (
115115 () -> assertTrue (result .getMessage ().contains ("E12: Data Download Failure" ),
116- "Should contain E12 error code" ),
116+ "Expected E12 error code in message " ),
117117 () -> assertTrue (result .getMessage ().contains ("HTTP response code 403" ),
118- "Should contain HTTP status code 403" ),
118+ "Expected HTTP status code 403 in message " ),
119119 () -> assertTrue (result .getMessage ().contains ("For troubleshooting information, refer to the applicable Private Operator guide" ),
120- "Should reference documentation " )
120+ "Expected documentation reference in message " )
121121 );
122122 }
123123
@@ -133,9 +133,9 @@ public void Download_Http404Error_LogsStatusCode() throws IOException, Attestati
133133
134134 assertAll (
135135 () -> assertTrue (result .getMessage ().contains ("HTTP response code 404" ),
136- "Should contain HTTP status code 404" ),
136+ "Expected HTTP status code 404 in message " ),
137137 () -> assertTrue (result .getMessage ().contains ("E12: Data Download Failure" ),
138- "Should contain E12 error code" )
138+ "Expected E12 error code in message " )
139139 );
140140 }
141141
@@ -151,9 +151,9 @@ public void Download_Http500Error_LogsStatusCode() throws IOException, Attestati
151151
152152 assertAll (
153153 () -> assertTrue (result .getMessage ().contains ("E12: Data Download Failure" ),
154- "Should contain E12 error code" ),
154+ "Expected E12 error code in message " ),
155155 () -> assertTrue (result .getMessage ().contains ("HTTP response code 500" ),
156- "Should contain HTTP status code 500" )
156+ "Expected HTTP status code 500 in message " )
157157 );
158158 }
159159
@@ -168,7 +168,7 @@ public void Download_Http503Error_LogsStatusCode() throws IOException, Attestati
168168 });
169169
170170 assertTrue (result .getMessage ().contains ("HTTP response code 503" ),
171- "Should contain HTTP status code 503" );
171+ "Expected HTTP status code 503 in message " );
172172 }
173173
174174 @ Test
@@ -182,11 +182,11 @@ public void Download_NetworkError_LogsExceptionType() throws IOException, Attest
182182
183183 assertAll (
184184 () -> assertTrue (result .getMessage ().contains ("E12: Data Download Failure" ),
185- "Should contain E12 error code" ),
185+ "Expected E12 error code in message " ),
186186 () -> assertTrue (result .getMessage ().contains ("exception: IOException" ),
187- "Should log exception type" ),
187+ "Expected exception type in message " ),
188188 () -> assertTrue (result .getMessage ().contains ("For troubleshooting information, refer to the applicable Private Operator guide" ),
189- "Should reference documentation " )
189+ "Expected documentation reference in message " )
190190 );
191191 }
192192}
0 commit comments