Add @Override annotations to test sources

Issue: SPR-10129
This commit is contained in:
Chris Beams
2012-12-28 13:59:24 +01:00
parent 6f0c7eb8c1
commit 4c8cd7b0bd
797 changed files with 4745 additions and 0 deletions

View File

@@ -45,14 +45,17 @@ public class AutowiredQualifierFooService implements FooService {
this.initCalled = true;
}
@Override
public String foo(int id) {
return this.fooDao.findFoo(id);
}
@Override
public Future<String> asyncFoo(int id) {
return new AsyncResult<String>(this.fooDao.findFoo(id));
}
@Override
public boolean isInitCalled() {
return this.initCalled;
}

View File

@@ -74,16 +74,19 @@ public class FooServiceImpl implements FooService {
this.initCalled = true;
}
@Override
public String foo(int id) {
return this.fooDao.findFoo(id);
}
@Override
public Future<String> asyncFoo(int id) {
System.out.println(Thread.currentThread().getName());
Assert.state(ServiceInvocationCounter.getThreadLocalCount() != null, "Thread-local counter not exposed");
return new AsyncResult<String>(this.fooDao.findFoo(id));
}
@Override
public boolean isInitCalled() {
return this.initCalled;
}

View File

@@ -28,14 +28,17 @@ import org.springframework.scheduling.annotation.AsyncResult;
@Scope("myScope")
public class ScopedProxyTestBean implements FooService {
@Override
public String foo(int id) {
return "bar";
}
@Override
public Future<String> asyncFoo(int id) {
return new AsyncResult<String>("bar");
}
@Override
public boolean isInitCalled() {
return false;
}

View File

@@ -26,6 +26,7 @@ import org.springframework.stereotype.Repository;
@Qualifier("testing")
public class StubFooDao implements FooDao {
@Override
public String findFoo(int id) {
return "bar";
}