Package demo

Source Code of demo.TestA

package demo;

import javax.annotation.Resource;

import model.AOV;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import service.IAService;
import service.IBService;

@ContextConfiguration(locations = { "classpath:application.xml" })
@RunWith(SpringJUnit4ClassRunner.class)
public class TestA {
  @Resource
  IHessianServiceFactory factory;

  @Test
  public void testA() {
    IAService a = factory.getAService();
    IBService b = factory.getBService();
    a.sayA();
    AOV aov = a.getAOV();
//    aov.setName("积极");
    System.out.println(aov.getName());
   
    b.sayB();
  }
}
TOP

Related Classes of demo.TestA

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.