Add FineractClientTest.testInvalidOperations (FINERACT-1221)

This commit is contained in:
Michael Vorburger
2020-10-19 17:58:43 +02:00
committed by Michael Vorburger ⛑️
parent c8324a90b9
commit db4d2ae006
2 changed files with 40 additions and 11 deletions
@@ -24,6 +24,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
import java.io.IOException;
import org.apache.fineract.client.util.FineractClient;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
/**
@@ -41,6 +42,14 @@ public class FineractClientTest {
.getTotalFilteredRecords()).isAtLeast(3);
}
@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.build();
}
@Test
void testFineractClientBuilder() throws IOException {
assertThrows(IllegalStateException.class, () -> {