@Test public void testRetrofitBuilder() { assertNotNull(retrofit); assertEquals(TEST_URL, retrofit.baseUrl().toString()); boolean inside = false; for (Converter.Factory currFactory : retrofit.converterFactories()) { if (factory == currFactory) inside = true; } assertTrue(inside); }
public RetrofitBuilder() { this.retrofitBuilder = new Retrofit.Builder(); this.okhttpBuilder = new OkHttpClient.Builder(); }
RetrofitBuilder { public RetrofitBuilder() { this.retrofitBuilder = new Retrofit.Builder(); this.okhttpBuilder = new OkHttpClient.Builder(); } }
RetrofitBuilder { public RetrofitBuilder() { this.retrofitBuilder = new Retrofit.Builder(); this.okhttpBuilder = new OkHttpClient.Builder(); } RetrofitBuilder(); }
RetrofitBuilder { public RetrofitBuilder() { this.retrofitBuilder = new Retrofit.Builder(); this.okhttpBuilder = new OkHttpClient.Builder(); } RetrofitBuilder(); RetrofitBuilder baseUrl(String baseUrl); RetrofitBuilder readTimeout(long timeout, TimeUnit unit); RetrofitBuilder writeTimeout(long timeout, TimeUnit unit); RetrofitBuilder connectTimeout(long timeout, TimeUnit unit); RetrofitBuilder addConverterFactory(Converter.Factory factory); RetrofitBuilder addInterceptor(); Retrofit build(); }
RetrofitBuilder { public RetrofitBuilder() { this.retrofitBuilder = new Retrofit.Builder(); this.okhttpBuilder = new OkHttpClient.Builder(); } RetrofitBuilder(); RetrofitBuilder baseUrl(String baseUrl); RetrofitBuilder readTimeout(long timeout, TimeUnit unit); RetrofitBuilder writeTimeout(long timeout, TimeUnit unit); RetrofitBuilder connectTimeout(long timeout, TimeUnit unit); RetrofitBuilder addConverterFactory(Converter.Factory factory); RetrofitBuilder addInterceptor(); Retrofit build();  }