Skip to content

Commit 0bfe31e

Browse files
committed
Remove stack traces from tests
1 parent 7f80b72 commit 0bfe31e

File tree

7 files changed

+8
-12
lines changed

7 files changed

+8
-12
lines changed

spring-batch-core/src/test/java/org/springframework/batch/core/test/concurrent/ConcurrentTransactionTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ public void configureConnectionProperties(ConnectionProperties properties, Strin
198198
this.getClass().getClassLoader()));
199199
}
200200
catch (Exception e) {
201-
e.printStackTrace();
202201
}
203202
properties.setUrl("jdbc:hsqldb:mem:" + databaseName + ";hsqldb.tx=mvcc");
204203
properties.setUsername("sa");

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/avro/example/AvroTestUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original author or authors.
2+
* Copyright 2019-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,7 +41,6 @@ public static void main(String... args) {
4141
createTestData();
4242
}
4343
catch (Exception e) {
44-
e.printStackTrace();
4544
}
4645
}
4746

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/SynchronizedItemStreamReaderTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015-2022 the original author or authors.
2+
* Copyright 2015-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,6 +32,7 @@
3232

3333
/**
3434
* @author Matthew Ouyang
35+
* @author Mahmoud Ben Hassine
3536
*
3637
*/
3738
class SynchronizedItemStreamReaderTests {
@@ -115,7 +116,6 @@ public void run() {
115116
synchronizedItemStreamReader.update(executionContext);
116117
}
117118
catch (Exception ignore) {
118-
ignore.printStackTrace();
119119
}
120120
}
121121
};

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/builder/SynchronizedItemStreamReaderBuilderTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2022 the original author or authors.
2+
* Copyright 2017-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,6 +35,7 @@
3535

3636
/**
3737
* @author Glenn Renfro
38+
* @author Mahmoud Ben Hassine
3839
*/
3940
class SynchronizedItemStreamReaderBuilderTests {
4041

@@ -70,7 +71,6 @@ public void run() {
7071
synchronizedItemStreamReader.update(executionContext);
7172
}
7273
catch (Exception ignore) {
73-
ignore.printStackTrace();
7474
}
7575
}
7676
};

spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/SynchronousTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -203,7 +203,6 @@ public Void doInJms(Session session) throws JMSException {
203203
}
204204
catch (Exception e) {
205205
// swallow it
206-
e.printStackTrace();
207206
}
208207
return null;
209208
}

spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/support/ThrottleLimitResultQueueTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@
2626

2727
/**
2828
* @author Dave Syer
29+
* @author Mahmoud Ben Hassine
2930
*
3031
*/
3132
class ThrottleLimitResultQueueTests {
@@ -65,7 +66,6 @@ public void run() {
6566
Thread.sleep(100L);
6667
}
6768
catch (InterruptedException e) {
68-
e.printStackTrace();
6969
Thread.currentThread().interrupt();
7070
}
7171
queue.put("foo");

spring-batch-integration/src/test/java/org/springframework/batch/integration/retry/TransactionalPollingIntegrationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ void testSunnyDay() {
106106
assertEquals(expected, processed);
107107
}
108108
catch (Throwable t) {
109-
t.printStackTrace();
110109
}
111110
}
112111

0 commit comments

Comments
 (0)