コード例 #1
0
  public void setUp() {
    ServiceManager.bootstrap();

    this.provisioner = (Provisioner) ServiceManager.locate("security://Provisioner");
    this.identityController =
        (IdentityController) ServiceManager.locate("security://IdentityController");
    this.groupController = (GroupController) ServiceManager.locate("security://GroupController");
    this.deviceController = (DeviceController) ServiceManager.locate("security://DeviceController");
  }
コード例 #2
0
  protected void setUp() throws Exception {
    ServiceManager.bootstrap();

    this.runner = (MobileBeanRunner) ServiceManager.locate("testMobileBeanSpec://mobileBeanRunner");
    this.runner.setApp("testApp");
    this.ticketConnector =
        (TicketConnector) ServiceManager.locate("testMobileBeanSpec://TicketConnector");
    this.serverSyncEngine =
        (ServerSyncEngine) ServiceManager.locate("synchronizer://ServerSyncEngine");
    this.dataGenerator =
        (MockDataGenerator) ServiceManager.locate("testMobileBeanSpec://MockDataGenerator");

    this.dataGenerator.generatePersistentData();
    this.runner.activateDevice();

    this.printDeviceData();
    this.printServerData();
  }