@Test public void testGo_transitionListenerEnd() throws Throwable { final SyncTransitionListener listener = new SyncTransitionListener(SyncTransitionListener.EVENT_END); rule.runOnUiThread(new Runnable() { @Override public void run() { Transition transition = new AutoTransition(); transition.setDuration(0); assertThat(transition.addListener(listener), is(sameInstance(transition))); TransitionManager.go(mScenes[0], transition); } }); assertThat("Timed out waiting for the TransitionListener", listener.await(), is(true)); }
public static void go(@NonNull Scene scene) { changeScene(scene, sDefaultTransition); }
TransitionManager { public static void go(@NonNull Scene scene) { changeScene(scene, sDefaultTransition); } }
TransitionManager { public static void go(@NonNull Scene scene) { changeScene(scene, sDefaultTransition); }  }
TransitionManager { public static void go(@NonNull Scene scene) { changeScene(scene, sDefaultTransition); }  void setTransition(@NonNull Scene scene, @Nullable Transition transition); void setTransition(@NonNull Scene fromScene, @NonNull Scene toScene,
            @Nullable Transition transition); void transitionTo(@NonNull Scene scene); static void go(@NonNull Scene scene); static void go(@NonNull Scene scene, @Nullable Transition transition); static void beginDelayedTransition(@NonNull final ViewGroup sceneRoot); static void beginDelayedTransition(@NonNull final ViewGroup sceneRoot,
            @Nullable Transition transition); static void endTransitions(final ViewGroup sceneRoot); }
TransitionManager { public static void go(@NonNull Scene scene) { changeScene(scene, sDefaultTransition); }  void setTransition(@NonNull Scene scene, @Nullable Transition transition); void setTransition(@NonNull Scene fromScene, @NonNull Scene toScene,
            @Nullable Transition transition); void transitionTo(@NonNull Scene scene); static void go(@NonNull Scene scene); static void go(@NonNull Scene scene, @Nullable Transition transition); static void beginDelayedTransition(@NonNull final ViewGroup sceneRoot); static void beginDelayedTransition(@NonNull final ViewGroup sceneRoot,
            @Nullable Transition transition); static void endTransitions(final ViewGroup sceneRoot);  }