@Test public void onlyMoviesModule() { client = new YtsClient .Builder() .withMovies() .build(); assertNotNull(client); assertNotNull(client.movies()); assertBookmarksModuleException(client); assertCommentModuleException(client); assertRequestsModuleException(client); assertUserModuleException(client); }
public MovieModule movies() { if (movieModule == null) { throw new IllegalStateException("Movies module not loaded. Call YtsClient.Builder.withMovies() "); } return movieModule; }
YtsClient { public MovieModule movies() { if (movieModule == null) { throw new IllegalStateException("Movies module not loaded. Call YtsClient.Builder.withMovies() "); } return movieModule; } }
YtsClient { public MovieModule movies() { if (movieModule == null) { throw new IllegalStateException("Movies module not loaded. Call YtsClient.Builder.withMovies() "); } return movieModule; } private  YtsClient(); }
YtsClient { public MovieModule movies() { if (movieModule == null) { throw new IllegalStateException("Movies module not loaded. Call YtsClient.Builder.withMovies() "); } return movieModule; } private  YtsClient(); BookmarkModule bookmarks(); CommentModule comments(); MovieModule movies(); RequestModule requests(); UserModule user(); }
YtsClient { public MovieModule movies() { if (movieModule == null) { throw new IllegalStateException("Movies module not loaded. Call YtsClient.Builder.withMovies() "); } return movieModule; } private  YtsClient(); BookmarkModule bookmarks(); CommentModule comments(); MovieModule movies(); RequestModule requests(); UserModule user();  }