Package org.jamesii.core.remote.dummyobjects

Examples of org.jamesii.core.remote.dummyobjects.Dummy


      return;
    }
    System.out.println("Registry initiliazed");
    // Registering an object here.
    HostCentralIDFactory idFac = new HostCentralIDFactory();
    d = new Dummy();
    id = idFac.create(new ParameterBlock(d, HostCentralIDFactory.PARAM_OBJECT), SimSystem.getRegistry().createContext());
    try {
      rcc.registerLocalObject(id, d);
    } catch (RemoteException e) {
      e.printStackTrace();
View Full Code Here


    super.tearDown();
  }

  public void testObjectRegistration() {
    HostCentralIDFactory idFac = new HostCentralIDFactory();
    d = new Dummy();
    id = idFac.create(new ParameterBlock(d, HostCentralIDFactory.PARAM_OBJECT), SimSystem.getRegistry().createContext());
    assertTrue(null != id);

    IObjectId id2 =
        new BasicRemoteObjectId(id.getStringRep(), d.getClass().getName());
View Full Code Here

    }
  }

  public void testLocalMethodCalling() {
    HostCentralIDFactory idFac = new HostCentralIDFactory();
    d = new Dummy();
    id = idFac.create(new ParameterBlock(d, HostCentralIDFactory.PARAM_OBJECT), SimSystem.getRegistry().createContext());
    lcc.registerObject(id, d);
    Object o = lcc.executeMethod(Dummy.ONLY_METHOD, null, id);
    assertEquals(Dummy.RESULT, o);
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.remote.dummyobjects.Dummy

Copyright © 2018 www.massapicom. 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.