Package com.fengjing.framework.spring.remoting

Source Code of com.fengjing.framework.spring.remoting.HelloServiceTest

package com.fengjing.framework.spring.remoting;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.fengjing.framework.spring.remoting.HelloServiceClient;
import com.fengjing.framework.spring.remoting.User;

@ContextConfiguration(locations={"classpath:spring-rmi.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
public class HelloServiceTest {
 
  @Autowired
  private HelloServiceClient client;
 
  @Test
  public void sayHello(){
    System.out.println(client.sayHello("zhangsan"));
  }
 
  @Test
  public void modify(){
    User user=new User("zhangsan","123456");
    client.modify(user);
  }
 
 
}
TOP

Related Classes of com.fengjing.framework.spring.remoting.HelloServiceTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.