@Test public void testGo_exitAction() throws Throwable { final CheckCalledRunnable enter = new CheckCalledRunnable(); final CheckCalledRunnable exit = new CheckCalledRunnable(); mScenes[0].setEnterAction(enter); mScenes[0].setExitAction(exit); rule.runOnUiThread(new Runnable() { @Override public void run() { assertThat(enter.wasCalled(), is(false)); assertThat(exit.wasCalled(), is(false)); TransitionManager.go(mScenes[0]); assertThat(enter.wasCalled(), is(true)); assertThat(exit.wasCalled(), is(false)); } }); rule.runOnUiThread(new Runnable() { @Override public void run() { TransitionManager.go(mScenes[1]); assertThat(exit.wasCalled(), 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);  }