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