Do not expose getApiClient() in FineractClient (FINERACT-1220)
Because FineractClient is about to not use Swagger's ApiClient anymore.
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
800b7e07ad
commit
27bebff4ac
+9
-1
@@ -54,11 +54,19 @@ public class FineractClientTest {
|
||||
checkClients(fineract);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled // TODO FINERACT-1220
|
||||
void testOfficesDateFormat() throws IOException {
|
||||
FineractClient fineract = FineractClient.builder().baseURL("https://demo.fineract.dev/fineract-provider/api/v1/").tenant("default")
|
||||
.basicAuth("mifos", "password").insecure(true).build();
|
||||
ok(fineract.offices.retrieveOffices(true, null, null));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled // TODO remove Ignore once https://issues.apache.org/jira/browse/FINERACT-1221 is fixed
|
||||
void testInvalidOperations() throws IOException {
|
||||
FineractClient.Builder builder = FineractClient.builder().baseURL("http://test/").tenant("default").basicAuth("mifos", "password");
|
||||
builder.getApiClient().getAdapterBuilder().validateEagerly(true); // see FINERACT-1221
|
||||
builder.getRetrofitBuilder().validateEagerly(true); // see FINERACT-1221
|
||||
builder.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user