@Test(expected = IllegalStateException.class) public void shouldFailToGetInstaceIfBuilderNotCalled() { RoboRouter.getInstance(); }
public static RoboRouter getInstance() { if(sInstance == null) { throw new IllegalStateException("RoboRouter not initialized, did you call RoboRouterBuilder in your Application class?"); } return sInstance; }
RoboRouter { public static RoboRouter getInstance() { if(sInstance == null) { throw new IllegalStateException("RoboRouter not initialized, did you call RoboRouterBuilder in your Application class?"); } return sInstance; } }
RoboRouter { public static RoboRouter getInstance() { if(sInstance == null) { throw new IllegalStateException("RoboRouter not initialized, did you call RoboRouterBuilder in your Application class?"); } return sInstance; } RoboRouter(Application application, String accountType); }
RoboRouter { public static RoboRouter getInstance() { if(sInstance == null) { throw new IllegalStateException("RoboRouter not initialized, did you call RoboRouterBuilder in your Application class?"); } return sInstance; } RoboRouter(Application application, String accountType); static RoboRouter getInstance(); void doneWith(Activity activity); @SuppressLint("CommitPrefEdits") /** * Resets the walkthrough so instead of showing the login screen, it will display the Walkthrough once the user * has logout. */ void resetWalkthrough(); }
RoboRouter { public static RoboRouter getInstance() { if(sInstance == null) { throw new IllegalStateException("RoboRouter not initialized, did you call RoboRouterBuilder in your Application class?"); } return sInstance; } RoboRouter(Application application, String accountType); static RoboRouter getInstance(); void doneWith(Activity activity); @SuppressLint("CommitPrefEdits") /** * Resets the walkthrough so instead of showing the login screen, it will display the Walkthrough once the user * has logout. */ void resetWalkthrough();  }