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