Permalink
Browse files

use @Resource for consistency

  • Loading branch information...
1 parent 1661452 commit 12355676af879414d91e493cf1f2fd6f97499e85 @mikaelhg committed Feb 12, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/test/java/mikaelhg/example/ExampleServiceTest.java
@@ -1,10 +1,10 @@
package mikaelhg.example;
-import static org.mockito.Mockito.*;
-import static org.mockito.Matchers.*;
+import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
+import static org.mockito.Matchers.*;
+import static org.mockito.Mockito.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ContextConfiguration;
@@ -15,9 +15,9 @@
@ContextConfiguration(loader=AnnotationConfigContextLoader.class)
public class ExampleServiceTest {
- @Autowired private ExampleDao dao;
+ @Resource private ExampleDao dao;
- @Autowired private ExampleService svc;
+ @Resource private ExampleService svc;
@Configuration
static class ContextConfiguration {

0 comments on commit 1235567

Please sign in to comment.