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