Suppress some unused warnings in test cases

This commit is contained in:
dsyer
2009-12-29 15:02:33 +00:00
parent 8e8d4b39e6
commit 9e1d35c9cb
5 changed files with 7 additions and 0 deletions

View File

@@ -252,6 +252,7 @@ public class JobListenerFactoryBeanTests {
}
@SuppressWarnings("unused")
private class AnnotatedTestClass {
boolean beforeJobCalled = false;

View File

@@ -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;

View File

@@ -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;

View File

@@ -69,6 +69,7 @@ public class XStreamExecutionContextStringSerializerTests {
}
}
@SuppressWarnings("unused")
private static class ComplexObject {
private String name;
private BigDecimal number;

View File

@@ -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;