@Override
 protected void begin() {
   super.begin();
   Log.d(TAG, "begin!");
   DroneServiceWrapper.getInstance()
       .getDroneService()
       .playLedAnimation(
           5.0f, 3, ARDRONE_LED_ANIMATION.ARDRONE_LED_ANIMATION_BLINK_ORANGE.ordinal());
 }
Пример #2
0
  @Override
  protected void setUp() throws Exception {
    super.setUp();
    // Workaround for Android 4.4 Devices
    // https://code.google.com/p/dexmaker/issues/detail?id=2
    System.setProperty(
        "dexmaker.dexcache", getInstrumentation().getTargetContext().getCacheDir().getPath());

    droneControlService = Mockito.mock(DroneControlService.class);
    DroneServiceWrapper.getInstance().setDroneService(droneControlService);
    sprite = new Sprite(getName());
    sequenceAction = new SequenceAction();
  }