Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- */
- package com.metacube.questionbank.service.impl;
- import static org.junit.Assert.*;
- import org.junit.Before;
- import org.junit.Test;
- import org.junit.runner.RunWith;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.context.ApplicationContext;
- import org.springframework.context.support.FileSystemXmlApplicationContext;
- import org.springframework.test.context.ContextConfiguration;
- import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
- @RunWith(SpringJUnit4ClassRunner.class)
- /**
- * @author pc
- *
- */
- @ContextConfiguration(locations="file:WebContent/WEB-INF/dispatcher-servlet.xml")
- public class UserServiceImplTest {
- ApplicationContext ac;
- @Before
- public void setUp()
- {
- ac = new FileSystemXmlApplicationContext("../../WebContent/WEB-INF/dispatcher-servlet.xml");
- System.out.println(ac);
- }
- @Test
- public void test() {
- System.out.println("hello");
- assertEquals(1, 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement