예제 #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();
  }
예제 #3
0
  protected void tearDown() throws Exception {
    this.printDeviceData();
    this.printServerData();

    ServiceManager.shutdown();
  }
예제 #4
0
 public void tearDown() {
   ServiceManager.shutdown();
 }