Advertisement
Guest User

Untitled

a guest
Feb 9th, 2010
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. import com.mihailenco.helper.AnnotationConfigContextLoader;
  2. import junit.framework.Assert;
  3. import org.junit.Test;
  4. import org.junit.runner.RunWith;
  5. import org.springframework.test.context.ContextConfiguration;
  6. import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
  7.  
  8. @RunWith(SpringJUnit4ClassRunner.class)
  9. @ContextConfiguration(loader = AnnotationConfigContextLoader.class,
  10.     value = "com.mihailenco.config.ApplicationConfig")
  11. public class IocTest
  12. {
  13.     @Test
  14.     public void testIoc()
  15.     {
  16.         TestService service = new TestService();
  17.         Assert.assertNotNull(service.getPredicate());
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement