Skip to content

Commit 1480dc5

Browse files
marschallfmbenhassine
authored andcommitted
Use default methods in TestExecutionListener
Remove empty implementation methods.
1 parent 27e11b5 commit 1480dc5

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

spring-batch-test/src/main/java/org/springframework/batch/test/JobScopeTestExecutionListener.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2010 the original author or authors.
2+
* Copyright 2006-2021 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.
@@ -107,20 +107,6 @@ public void afterTestMethod(TestContext testContext) throws Exception {
107107
JobSynchronizationManager.close();
108108
}
109109
}
110-
111-
/*
112-
* Support for Spring 3.0 (empty).
113-
*/
114-
@Override
115-
public void afterTestClass(TestContext testContext) throws Exception {
116-
}
117-
118-
/*
119-
* Support for Spring 3.0 (empty).
120-
*/
121-
@Override
122-
public void beforeTestClass(TestContext testContext) throws Exception {
123-
}
124110

125111
/**
126112
* Discover a {@link JobExecution} as a field in the test case or create

spring-batch-test/src/main/java/org/springframework/batch/test/StepScopeTestExecutionListener.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,6 @@ public void afterTestMethod(TestContext testContext) throws Exception {
109109
StepSynchronizationManager.close();
110110
}
111111
}
112-
113-
/*
114-
* Support for Spring 3.0 (empty).
115-
*/
116-
@Override
117-
public void afterTestClass(TestContext testContext) throws Exception {
118-
}
119-
120-
/*
121-
* Support for Spring 3.0 (empty).
122-
*/
123-
@Override
124-
public void beforeTestClass(TestContext testContext) throws Exception {
125-
}
126112

127113
/**
128114
* Discover a {@link StepExecution} as a field in the test case or create

0 commit comments

Comments
 (0)