Suppress some unused warnings in test cases
This commit is contained in:
@@ -252,6 +252,7 @@ public class JobListenerFactoryBeanTests {
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private class AnnotatedTestClass {
|
||||
|
||||
boolean beforeJobCalled = false;
|
||||
|
||||
@@ -392,6 +392,7 @@ public class StepListenerFactoryBeanTests {
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private class ThreeStepExecutionListener implements StepExecutionListener {
|
||||
|
||||
int callcount = 0;
|
||||
@@ -417,6 +418,7 @@ public class StepListenerFactoryBeanTests {
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private class TestListener implements SkipListener<String, Integer> {
|
||||
|
||||
boolean beforeStepCalled = false;
|
||||
|
||||
@@ -71,6 +71,7 @@ public class StepListenerMethodInterceptorTests {
|
||||
return invokerSet;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private class TestClass{
|
||||
|
||||
int method1Count = 0;
|
||||
@@ -91,6 +92,7 @@ public class StepListenerMethodInterceptorTests {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private class StubMethodInvocation implements MethodInvocation{
|
||||
|
||||
Method method;
|
||||
|
||||
@@ -69,6 +69,7 @@ public class XStreamExecutionContextStringSerializerTests {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class ComplexObject {
|
||||
private String name;
|
||||
private BigDecimal number;
|
||||
|
||||
@@ -71,6 +71,7 @@ public class NonAbstractStepTests {
|
||||
* Fills the events list when listener methods are called, prefixed with the
|
||||
* name of the listener.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private class EventTrackingListener implements StepExecutionListener {
|
||||
|
||||
private String name;
|
||||
|
||||
Reference in New Issue
Block a user