FileDocCategorySizeDatePackage
RemotingTest.javaAPI DocExample690Mon Apr 25 12:15:32 BST 2005None

RemotingTest

public class RemotingTest extends TestCase

Fields Summary
private org.springframework.context.ApplicationContext
ctx
private com.springbook.RentABike
rental
Constructors Summary
Methods Summary
public voidsetUp()


        
      ctx = new FileSystemXmlApplicationContext(
            "/war/WEB-INF/rentaBikeApp-servlet.xml");       
      rental = (RentABike)ctx.getBean("rentabikeHttpProxy");
   
public voidtestRemoting()

      Bike b = rental.getBike(1);
      assertNotNull(b);
      //etc.