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