@@ -115,7 +115,7 @@ void tearDown() {
115115 @ ParameterizedTest
116116 @ MethodSource ("sleepTimes" )
117117 public void shutdownDuringValidation (int sleepMillis ) {
118- System .out .println (Thread .currentThread () + " shutdownDuringValidation with sleepMillis=" + sleepMillis );
118+ System .err .println (Thread .currentThread () + " shutdownDuringValidation with sleepMillis=" + sleepMillis );
119119 try {
120120// clear interrupted flag
121121 Thread .interrupted ();
@@ -157,15 +157,15 @@ public void shutdownDuringValidation(int sleepMillis) {
157157 }
158158 } catch (Exception e ) {
159159 if (e instanceof RepositoryException && causedByInterruptedException (e )) {
160- System .out .println (e );
160+ System .err .println (e );
161161 return ;
162162 }
163163 if (e instanceof RepositoryException && e .getCause () instanceof InterruptedSailException ) {
164- System .out .println (e );
164+ System .err .println (e );
165165 return ;
166166 }
167167 if (e .toString ().contains ("closed" )) {
168- System .out .println (e );
168+ System .err .println (e );
169169 return ;
170170 }
171171 throw e ;
@@ -175,7 +175,7 @@ public void shutdownDuringValidation(int sleepMillis) {
175175 @ ParameterizedTest
176176 @ MethodSource ("sleepTimes" )
177177 public void shutdownDuringValidationTransactional (int sleepMillis ) {
178- System .out .println (
178+ System .err .println (
179179 Thread .currentThread () + " shutdownDuringValidationTransactional with sleepMillis=" + sleepMillis );
180180 try {
181181// clear interrupted flag
@@ -224,15 +224,15 @@ public void shutdownDuringValidationTransactional(int sleepMillis) {
224224 }
225225 } catch (Exception e ) {
226226 if (e instanceof RepositoryException && causedByInterruptedException (e )) {
227- System .out .println (e );
227+ System .err .println (e );
228228 return ;
229229 }
230230 if (e instanceof RepositoryException && e .getCause () instanceof InterruptedSailException ) {
231- System .out .println (e );
231+ System .err .println (e );
232232 return ;
233233 }
234234 if (e .toString ().contains ("closed" )) {
235- System .out .println (e );
235+ System .err .println (e );
236236 return ;
237237 }
238238 throw e ;
@@ -242,7 +242,7 @@ public void shutdownDuringValidationTransactional(int sleepMillis) {
242242 @ ParameterizedTest
243243 @ MethodSource ("sleepTimes" )
244244 public void shutdownDuringValidationFailure (int sleepMillis ) {
245- System .out .println (Thread .currentThread () + " shutdownDuringValidationFailure with sleepMillis=" + sleepMillis );
245+ System .err .println (Thread .currentThread () + " shutdownDuringValidationFailure with sleepMillis=" + sleepMillis );
246246 try {
247247
248248// clear interrupted flag
@@ -284,15 +284,15 @@ public void shutdownDuringValidationFailure(int sleepMillis) {
284284 }
285285 } catch (Exception e ) {
286286 if (e instanceof RepositoryException && causedByInterruptedException (e )) {
287- System .out .println (e );
287+ System .err .println (e );
288288 return ;
289289 }
290290 if (e instanceof RepositoryException && e .getCause () instanceof InterruptedSailException ) {
291- System .out .println (e );
291+ System .err .println (e );
292292 return ;
293293 }
294294 if (e .toString ().contains ("closed" )) {
295- System .out .println (e );
295+ System .err .println (e );
296296 return ;
297297 }
298298 throw e ;
@@ -302,7 +302,7 @@ public void shutdownDuringValidationFailure(int sleepMillis) {
302302 @ ParameterizedTest
303303 @ MethodSource ("sleepTimes" )
304304 public void shutdownDuringValidationFailureNonParallel (int sleepMillis ) {
305- System .out .println (
305+ System .err .println (
306306 Thread .currentThread () + " shutdownDuringValidationFailureNonParallel with sleepMillis=" + sleepMillis );
307307 try {
308308// clear interrupted flag
@@ -345,15 +345,15 @@ public void shutdownDuringValidationFailureNonParallel(int sleepMillis) {
345345 }
346346 } catch (Exception e ) {
347347 if (e instanceof RepositoryException && causedByInterruptedException (e )) {
348- System .out .println (e );
348+ System .err .println (e );
349349 return ;
350350 }
351351 if (e instanceof RepositoryException && e .getCause () instanceof InterruptedSailException ) {
352- System .out .println (e );
352+ System .err .println (e );
353353 return ;
354354 }
355355 if (e .toString ().contains ("closed" )) {
356- System .out .println (e );
356+ System .err .println (e );
357357 return ;
358358 }
359359
@@ -364,7 +364,7 @@ public void shutdownDuringValidationFailureNonParallel(int sleepMillis) {
364364 @ ParameterizedTest
365365 @ MethodSource ("sleepTimes" )
366366 public void shutdownDuringValidationTransactionalNonParallel (int sleepMillis ) {
367- System .out .println (Thread .currentThread ()
367+ System .err .println (Thread .currentThread ()
368368 + " shutdownDuringValidationTransactionalNonParallel with sleepMillis=" + sleepMillis );
369369 try {
370370 // clear interrupted flag
@@ -386,7 +386,7 @@ public void shutdownDuringValidationTransactionalNonParallel(int sleepMillis) {
386386
387387 commitAndExpect (connection , EXPECTED_REPOSITORY_SIZE + 1 , 1 );
388388 } catch (RepositoryException | SailException e ) {
389- System .out .println (e );
389+ System .err .println (e );
390390 if (e instanceof InterruptedSailException ) {
391391 // ignore this exception
392392 return ;
@@ -421,15 +421,15 @@ public void shutdownDuringValidationTransactionalNonParallel(int sleepMillis) {
421421 }
422422 } catch (Exception e ) {
423423 if (e instanceof RepositoryException && causedByInterruptedException (e )) {
424- System .out .println (e );
424+ System .err .println (e );
425425 return ;
426426 }
427427 if (e instanceof RepositoryException && e .getCause () instanceof InterruptedSailException ) {
428- System .out .println (e );
428+ System .err .println (e );
429429 return ;
430430 }
431431 if (e .toString ().contains ("closed" )) {
432- System .out .println (e );
432+ System .err .println (e );
433433 return ;
434434 }
435435 throw e ;
@@ -438,7 +438,7 @@ public void shutdownDuringValidationTransactionalNonParallel(int sleepMillis) {
438438
439439 @ Test
440440 void nestedInterruptedExceptionShouldBeDetected () {
441- System .out .println (Thread .currentThread () + " nestedInterruptedExceptionShouldBeDetected" );
441+ System .err .println (Thread .currentThread () + " nestedInterruptedExceptionShouldBeDetected" );
442442 InterruptedException interruptedException = new InterruptedException ("nested" );
443443 SailException sailException = new SailException ("wrapper" , new SailException ("inner" , interruptedException ));
444444 RepositoryException repositoryException = new RepositoryException ("top" , sailException );
@@ -482,7 +482,7 @@ private static void commitAndExpect(SailRepositoryConnection connection, long ex
482482 throw e ;
483483 }
484484 } catch (RepositoryException ignored ) {
485- System .out .println (ignored .getMessage ());
485+ System .err .println (ignored .getMessage ());
486486 try {
487487 connection .rollback ();
488488 } catch (Exception e ) {
0 commit comments