Add FineractClientTest.testInvalidOperations (FINERACT-1221)
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
c8324a90b9
commit
db4d2ae006
@@ -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, () -> {
|
||||
|
||||
Reference in New Issue
Block a user