use of retrofit2.Retrofit in project retrofit by square.
the class AsyncTest method setUp.
@Before
public void setUp() {
Retrofit retrofit = new Retrofit.Builder().baseUrl(server.url("/")).addCallAdapterFactory(RxJava2CallAdapterFactory.createAsync()).build();
service = retrofit.create(Service.class);
}
use of retrofit2.Retrofit in project retrofit by square.
the class ObservableTest method setUp.
@Before
public void setUp() {
Retrofit retrofit = new Retrofit.Builder().baseUrl(server.url("/")).addConverterFactory(new StringConverterFactory()).addCallAdapterFactory(RxJavaCallAdapterFactory.create()).build();
service = retrofit.create(Service.class);
}
use of retrofit2.Retrofit in project retrofit by square.
the class CompletableTest method setUp.
@Before
public void setUp() {
Retrofit retrofit = new Retrofit.Builder().baseUrl(server.url("/")).addCallAdapterFactory(RxJava2CallAdapterFactory.create()).build();
service = retrofit.create(Service.class);
}
use of retrofit2.Retrofit in project retrofit by square.
the class CompletableWithSchedulerTest method setUp.
@Before
public void setUp() {
Retrofit retrofit = new Retrofit.Builder().baseUrl(server.url("/")).addCallAdapterFactory(RxJava2CallAdapterFactory.createWithScheduler(scheduler)).build();
service = retrofit.create(Service.class);
}
use of retrofit2.Retrofit in project retrofit by square.
the class FlowableTest method setUp.
@Before
public void setUp() {
Retrofit retrofit = new Retrofit.Builder().baseUrl(server.url("/")).addConverterFactory(new StringConverterFactory()).addCallAdapterFactory(RxJava2CallAdapterFactory.create()).build();
service = retrofit.create(Service.class);
}
Aggregations