Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.mihailenco.helper.AnnotationConfigContextLoader;
- import junit.framework.Assert;
- import org.junit.Test;
- import org.junit.runner.RunWith;
- import org.springframework.test.context.ContextConfiguration;
- import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
- @RunWith(SpringJUnit4ClassRunner.class)
- @ContextConfiguration(loader = AnnotationConfigContextLoader.class,
- value = "com.mihailenco.config.ApplicationConfig")
- public class IocTest
- {
- @Test
- public void testIoc()
- {
- TestService service = new TestService();
- Assert.assertNotNull(service.getPredicate());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement