package org.ssh.app.httpinvoke.client;

import java.util.logging.Logger;

import org.ssh.app.httpinvoke.domain.User;
import org.ssh.app.httpinvoke.service.UserService;

public class UserServiceTest {
    private Logger logger = Logger.getLogger(UserServiceTest.class);
    private ApplicationContext context;

    private UserService userService;

    @Before
    public void initialize() {
        context = new ClassPathXmlApplicationContext("classpath:/httpinvoke/applicationContext.httpinvoke.test.xml");
        userService = (UserService) context.getBean("userService");
    }

    @Test
    public void getUser() {
        User user = userService.getUser("zlex");
        if (logger.isDebugEnabled()) {
            logger.debug("user[" + user + "]");
        }

        System.out.println("user[" + user + "]");
    }
}
@@ -46,35 +46,214 @@
 ort 
-java.util.logging.Logger;%0D%0A
+org.apache.log4j.Logger;%0D%0Aimport org.junit.Before;%0D%0Aimport org.junit.Test;%0D%0Aimport org.springframework.context.ApplicationContext;%0D%0Aimport org.springframework.context.support.ClassPathXmlApplicationContext;
 %0D%0Aim

move httpinvoke test to test src dir..