parameters) {
+ this.parameters = parameters;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TTSEngine ttSEngine = (TTSEngine) o;
+ return Objects.equals(this.name, ttSEngine.name)
+ && Objects.equals(this.parameters, ttSEngine.parameters);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name, parameters);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TTSEngine {\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java
index a22a530..be036cf 100644
--- a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java
+++ b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java
@@ -33,7 +33,7 @@ public class DefaultApiTest {
public void setup() {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://127.0.0.1:4010");
- defaultClient.setAccountId("YOUR_ACCOUNT_ID");
+ defaultClient.setAccountId("AC2d721074c7265c419cf76a82722854a3c0d595be");
defaultClient.setApiKey("YOUR_API_KEY");
this.apiInstance = new DefaultApi(defaultClient);
}
@@ -100,6 +100,23 @@ public void createAnApplicationTest() throws ApiException {
assertEquals(response.getClass(), ApplicationResult.class);
}
+ /**
+ * Create a Blob
+ *
+ * Create a new Blob belonging to the requesting account.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void createBlobTest() throws ApiException {
+
+ CreateBlobRequest createBlobRequest = createBlobRequestCreateBlobRequestTestValue();
+
+ BlobResult response = this.apiInstance.createBlob(createBlobRequest);
+ // TODO: test validations
+ assertEquals(response.getClass(), BlobResult.class);
+ }
+
/**
* Create an Export
*
@@ -193,6 +210,25 @@ public void deleteAnIncomingNumberTest() throws ApiException {
}
+ /**
+ * Delete Blob
+ *
+ *
Deletes a blob or specific keys from a blob. If no keys are specified in the request body,
+ * the entire blob is deleted (returns 204). If specific keys are provided, only those keys are
+ * removed and the remaining blob is returned (returns 200).
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void deleteBlobTest() throws ApiException {
+
+ String blobId = blobIdStringTestValue();
+
+ BlobResult response = this.apiInstance.deleteBlob(blobId);
+ // TODO: test validations
+ assertEquals(response.getClass(), BlobResult.class);
+ }
+
/**
* Dequeue a Member
*
@@ -438,6 +474,23 @@ public void getAnSmsMessageTest() throws ApiException {
assertEquals(response.getClass(), MessageResult.class);
}
+ /**
+ * Get Blob
+ *
+ *
Retrieves a specified blob
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void getBlobTest() throws ApiException {
+
+ String blobId = blobIdStringTestValue();
+
+ BlobResult response = this.apiInstance.getBlob(blobId);
+ // TODO: test validations
+ assertEquals(response.getClass(), BlobResult.class);
+ }
+
/**
* Get Head Member
*
@@ -658,6 +711,22 @@ public void listAvailableNumbersTest() throws ApiException {
assertEquals(response.getClass(), AvailableNumberList.class);
}
+ /**
+ * List Blobs belonging to an account.
+ *
+ *
List Blobs belonging to an account. Results are returned in paginated lists mirroring
+ * other listing features in the API.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void listBlobsTest() throws ApiException {
+
+ BlobListResponse response = this.apiInstance.listBlobs();
+ // TODO: test validations
+ assertEquals(response.getClass(), BlobListResponse.class);
+ }
+
/**
* List Call Logs
*
@@ -813,10 +882,6 @@ public void listIncomingNumbersTest() throws ApiException {
Boolean hasApplication = hasApplicationBooleanTestValue();
- Boolean voiceEnabled = voiceEnabledBooleanTestValue();
-
- Boolean smsEnabled = smsEnabledBooleanTestValue();
-
Boolean hasCampaign = hasCampaignBooleanTestValue();
Boolean capabilitiesVoice = capabilitiesVoiceBooleanTestValue();
@@ -841,8 +906,6 @@ public void listIncomingNumbersTest() throws ApiException {
country,
applicationId,
hasApplication,
- voiceEnabled,
- smsEnabled,
hasCampaign,
capabilitiesVoice,
capabilitiesSms,
@@ -972,6 +1035,25 @@ public void makeAWebrtcJwtTest() throws ApiException {
assertEquals(response.getClass(), String.class);
}
+ /**
+ * Modify Blob
+ *
+ *
Modifys a pre existing blob by either adding new fields, or modifying existing fields
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void modifyBlobTest() throws ApiException {
+
+ String blobId = blobIdStringTestValue();
+
+ ModifyBlobRequest modifyBlobRequest = modifyBlobRequestModifyBlobRequestTestValue();
+
+ BlobResult response = this.apiInstance.modifyBlob(blobId, modifyBlobRequest);
+ // TODO: test validations
+ assertEquals(response.getClass(), BlobResult.class);
+ }
+
/**
* Remove a Participant
*
@@ -989,6 +1071,25 @@ public void removeAParticipantTest() throws ApiException {
}
+ /**
+ * Replace Blob
+ *
+ *
Replaces the blob content with the provided values.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void replaceBlobTest() throws ApiException {
+
+ String blobId = blobIdStringTestValue();
+
+ ReplaceBlobRequest replaceBlobRequest = replaceBlobRequestReplaceBlobRequestTestValue();
+
+ BlobResult response = this.apiInstance.replaceBlob(blobId, replaceBlobRequest);
+ // TODO: test validations
+ assertEquals(response.getClass(), BlobResult.class);
+ }
+
/**
* Send an SMS Message
*
@@ -1157,7 +1258,10 @@ public void filterLogsGetNextPageTest() throws ApiException {
LogList response = this.apiInstance.filterLogs(filterLogsRequest);
String localVarNextPageUri =
- "/Accounts/{accountId}/Logs".replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ "/Accounts/{accountId}/Logs"
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
LogList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), LogList.class);
@@ -1174,7 +1278,9 @@ public void getTenDLCSmsBrandsGetNextPageTest() throws ApiException {
SMSTenDLCBrandsListResult response = this.apiInstance.getTenDLCSmsBrands();
String localVarNextPageUri =
"/Accounts/{accountId}/Messages/10DLC/Brands"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
SMSTenDLCBrandsListResult nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), SMSTenDLCBrandsListResult.class);
@@ -1193,7 +1299,9 @@ public void getTenDLCSmsCampaignsGetNextPageTest() throws ApiException {
SMSTenDLCCampaignsListResult response = this.apiInstance.getTenDLCSmsCampaigns(brandId);
String localVarNextPageUri =
"/Accounts/{accountId}/Messages/10DLC/Campaigns"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
SMSTenDLCCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), SMSTenDLCCampaignsListResult.class);
@@ -1213,7 +1321,9 @@ public void getTenDLCSmsPartnerCampaignsGetNextPageTest() throws ApiException {
this.apiInstance.getTenDLCSmsPartnerCampaigns(brandId);
String localVarNextPageUri =
"/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
SMSTenDLCPartnerCampaignsListResult nextPageResponse =
this.apiInstance.getNextPage(response);
@@ -1231,7 +1341,9 @@ public void getTollFreeSmsCampaignsGetNextPageTest() throws ApiException {
SMSTollFreeCampaignsListResult response = this.apiInstance.getTollFreeSmsCampaigns();
String localVarNextPageUri =
"/Accounts/{accountId}/Messages/TollFree/Campaigns"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
SMSTollFreeCampaignsListResult nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), SMSTollFreeCampaignsListResult.class);
@@ -1249,7 +1361,10 @@ public void listActiveQueuesGetNextPageTest() throws ApiException {
QueueList response = this.apiInstance.listActiveQueues(alias);
String localVarNextPageUri =
- "/Accounts/{accountId}/Queues".replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ "/Accounts/{accountId}/Queues"
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
QueueList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), QueueList.class);
@@ -1265,7 +1380,10 @@ public void listAllAccountLogsGetNextPageTest() throws ApiException {
LogList response = this.apiInstance.listAllAccountLogs();
String localVarNextPageUri =
- "/Accounts/{accountId}/Logs".replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ "/Accounts/{accountId}/Logs"
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
LogList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), LogList.class);
@@ -1284,7 +1402,9 @@ public void listApplicationsGetNextPageTest() throws ApiException {
ApplicationList response = this.apiInstance.listApplications(alias);
String localVarNextPageUri =
"/Accounts/{accountId}/Applications"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
ApplicationList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), ApplicationList.class);
@@ -1336,6 +1456,28 @@ public void listAvailableNumbersGetNextPageTest() throws ApiException {
assertEquals(nextPageResponse.getClass(), AvailableNumberList.class);
}
+ /**
+ * Get Next Page for List Blobs belonging to an account.
+ *
+ *
List Blobs belonging to an account. Results are returned in paginated lists mirroring
+ * other listing features in the API.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void listBlobsGetNextPageTest() throws ApiException {
+
+ BlobListResponse response = this.apiInstance.listBlobs();
+ String localVarNextPageUri =
+ "/Accounts/{accountId}/Blobs"
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
+ response.setNextPageUri(localVarNextPageUri + "?cursor=1");
+ BlobListResponse nextPageResponse = this.apiInstance.getNextPage(response);
+ assertEquals(nextPageResponse.getClass(), BlobListResponse.class);
+ }
+
/**
* Get Next Page for List Call Logs
*
@@ -1349,8 +1491,12 @@ public void listCallLogsGetNextPageTest() throws ApiException {
LogList response = this.apiInstance.listCallLogs(callId);
String localVarNextPageUri =
"/Accounts/{accountId}/Calls/{callId}/Logs"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK")
- .replaceAll("\\{" + "callId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00")
+ .replaceAll(
+ "\\{" + "callId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
LogList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), LogList.class);
@@ -1371,8 +1517,12 @@ public void listCallRecordingsGetNextPageTest() throws ApiException {
RecordingList response = this.apiInstance.listCallRecordings(callId, dateCreated);
String localVarNextPageUri =
"/Accounts/{accountId}/Calls/{callId}/Recordings"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK")
- .replaceAll("\\{" + "callId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00")
+ .replaceAll(
+ "\\{" + "callId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
RecordingList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), RecordingList.class);
@@ -1419,7 +1569,10 @@ public void listCallsGetNextPageTest() throws ApiException {
riskScoreMin,
riskScoreMax);
String localVarNextPageUri =
- "/Accounts/{accountId}/Calls".replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ "/Accounts/{accountId}/Calls"
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
CallList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), CallList.class);
@@ -1443,8 +1596,12 @@ public void listConferenceRecordingsGetNextPageTest() throws ApiException {
this.apiInstance.listConferenceRecordings(conferenceId, callId, dateCreated);
String localVarNextPageUri =
"/Accounts/{accountId}/Conferences/{conferenceId}/Recordings"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK")
- .replaceAll("\\{" + "conferenceId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00")
+ .replaceAll(
+ "\\{" + "conferenceId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
RecordingList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), RecordingList.class);
@@ -1469,7 +1626,10 @@ public void listConferencesGetNextPageTest() throws ApiException {
ConferenceList response =
this.apiInstance.listConferences(status, alias, dateCreated, dateUpdated);
String localVarNextPageUri =
- "/Accounts/{accountId}/Conferences".replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ "/Accounts/{accountId}/Conferences"
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
ConferenceList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), ConferenceList.class);
@@ -1489,7 +1649,10 @@ public void listExportsGetNextPageTest() throws ApiException {
ExportList response = this.apiInstance.listExports(status, cursor);
String localVarNextPageUri =
- "/Accounts/{accountId}/Exports".replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ "/Accounts/{accountId}/Exports"
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
ExportList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), ExportList.class);
@@ -1515,10 +1678,6 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException {
Boolean hasApplication = hasApplicationBooleanTestValue();
- Boolean voiceEnabled = voiceEnabledBooleanTestValue();
-
- Boolean smsEnabled = smsEnabledBooleanTestValue();
-
Boolean hasCampaign = hasCampaignBooleanTestValue();
Boolean capabilitiesVoice = capabilitiesVoiceBooleanTestValue();
@@ -1543,8 +1702,6 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException {
country,
applicationId,
hasApplication,
- voiceEnabled,
- smsEnabled,
hasCampaign,
capabilitiesVoice,
capabilitiesSms,
@@ -1555,7 +1712,9 @@ public void listIncomingNumbersGetNextPageTest() throws ApiException {
offnet);
String localVarNextPageUri =
"/Accounts/{accountId}/IncomingPhoneNumbers"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
IncomingNumberList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), IncomingNumberList.class);
@@ -1574,8 +1733,12 @@ public void listMembersGetNextPageTest() throws ApiException {
QueueMemberList response = this.apiInstance.listMembers(queueId);
String localVarNextPageUri =
"/Accounts/{accountId}/Queues/{queueId}/Members"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK")
- .replaceAll("\\{" + "queueId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00")
+ .replaceAll(
+ "\\{" + "queueId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
QueueMemberList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), QueueMemberList.class);
@@ -1601,8 +1764,12 @@ public void listParticipantsGetNextPageTest() throws ApiException {
this.apiInstance.listParticipants(conferenceId, talk, listen, dtmfPassThrough);
String localVarNextPageUri =
"/Accounts/{accountId}/Conferences/{conferenceId}/Participants"
- .replaceAll("\\{" + "accountId" + "\\}", "MOCK")
- .replaceAll("\\{" + "conferenceId" + "\\}", "MOCK");
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00")
+ .replaceAll(
+ "\\{" + "conferenceId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
ConferenceParticipantList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), ConferenceParticipantList.class);
@@ -1624,7 +1791,10 @@ public void listRecordingsGetNextPageTest() throws ApiException {
RecordingList response = this.apiInstance.listRecordings(callId, conferenceId, dateCreated);
String localVarNextPageUri =
- "/Accounts/{accountId}/Recordings".replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ "/Accounts/{accountId}/Recordings"
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
RecordingList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), RecordingList.class);
@@ -1658,7 +1828,10 @@ public void listSmsMessagesGetNextPageTest() throws ApiException {
this.apiInstance.listSmsMessages(
to, from, beginTime, endTime, direction, campaignId, brandId, is10DLC);
String localVarNextPageUri =
- "/Accounts/{accountId}/Messages".replaceAll("\\{" + "accountId" + "\\}", "MOCK");
+ "/Accounts/{accountId}/Messages"
+ .replaceAll(
+ "\\{" + "accountId" + "\\}",
+ "AC0123456789abcdefABCDEF0123456789abcdef00");
response.setNextPageUri(localVarNextPageUri + "?cursor=1");
MessagesList nextPageResponse = this.apiInstance.getNextPage(response);
assertEquals(nextPageResponse.getClass(), MessagesList.class);
@@ -2050,4 +2223,38 @@ private ExportStatus statusExportStatusTestValue() {
ExportStatus status = ExportStatus.COMPLETED;
return status;
}
+
+ private CreateBlobRequest createBlobRequestCreateBlobRequestTestValue() {
+ CreateBlobRequest request = new CreateBlobRequest();
+ request.setAlias("TEST-ALIAS");
+ request.setExpiresAt("TEST-EXPIRY-DATE");
+ request.setBlob(new Object());
+ return request;
+ }
+
+ private String blobIdStringTestValue() {
+ return "BL2d721074c7265c419cf76a82722854a3c0d595be";
+ }
+
+ private List keyTestArray() {
+ List keyTestArray = new ArrayList();
+ keyTestArray.add("id");
+ keyTestArray.add("from");
+ keyTestArray.add("to");
+ keyTestArray.add("text");
+ return keyTestArray;
+ }
+
+ private ModifyBlobRequest modifyBlobRequestModifyBlobRequestTestValue() {
+ ModifyBlobRequest request = new ModifyBlobRequest();
+ request.setAlias("TEST-ALIAS");
+ request.setBlob(new Object());
+ return request;
+ }
+
+ private ReplaceBlobRequest replaceBlobRequestReplaceBlobRequestTestValue() {
+ ReplaceBlobRequest request = new ReplaceBlobRequest();
+ request.setBlob(new Object());
+ return request;
+ }
}
diff --git a/src/test/java/com/github/freeclimbapi/enums/TTSEngineNameTest.java b/src/test/java/com/github/freeclimbapi/enums/TTSEngineNameTest.java
new file mode 100644
index 0000000..63d5252
--- /dev/null
+++ b/src/test/java/com/github/freeclimbapi/enums/TTSEngineNameTest.java
@@ -0,0 +1,92 @@
+/*
+ * FreeClimb API
+ * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Contact: support@freeclimb.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.github.freeclimbapi;
+
+import com.github.freeclimbapi.enums.*;
+import com.github.freeclimbapi.models.*;
+import java.util.*;
+import org.junit.Assert;
+import org.junit.Test;
+
+/** Model tests for TTSEngineName */
+public class TTSEngineNameTest {
+
+ @Test
+ public void testFREECLIMB_STANDARDShouldWork() {
+
+ TTSEngineName test = TTSEngineName.FREECLIMB_STANDARD;
+ Assert.assertEquals(test.getClass(), TTSEngineName.class);
+ }
+
+ @Test
+ public void testFREECLIMB_STANDARDShouldSerializeToEnum() {
+
+ TTSEngineName expectedValue = TTSEngineName.FREECLIMB_STANDARD;
+ TTSEngineName calculatedValue = TTSEngineName.fromValue("freeclimb.standard");
+ Assert.assertEquals(expectedValue, calculatedValue);
+ }
+
+ @Test
+ public void testFREECLIMB_STANDARDShouldDeserializeToString() {
+ TTSEngineName test = TTSEngineName.FREECLIMB_STANDARD;
+ String expectedValue = "freeclimb.standard";
+ String calculatedValue = test.toString();
+ Assert.assertEquals(expectedValue, calculatedValue);
+ }
+
+ @Test
+ public void testFREECLIMB_NEURALShouldWork() {
+
+ TTSEngineName test = TTSEngineName.FREECLIMB_NEURAL;
+ Assert.assertEquals(test.getClass(), TTSEngineName.class);
+ }
+
+ @Test
+ public void testFREECLIMB_NEURALShouldSerializeToEnum() {
+
+ TTSEngineName expectedValue = TTSEngineName.FREECLIMB_NEURAL;
+ TTSEngineName calculatedValue = TTSEngineName.fromValue("freeclimb.neural");
+ Assert.assertEquals(expectedValue, calculatedValue);
+ }
+
+ @Test
+ public void testFREECLIMB_NEURALShouldDeserializeToString() {
+ TTSEngineName test = TTSEngineName.FREECLIMB_NEURAL;
+ String expectedValue = "freeclimb.neural";
+ String calculatedValue = test.toString();
+ Assert.assertEquals(expectedValue, calculatedValue);
+ }
+
+ @Test
+ public void testELEVEN_LABSShouldWork() {
+
+ TTSEngineName test = TTSEngineName.ELEVEN_LABS;
+ Assert.assertEquals(test.getClass(), TTSEngineName.class);
+ }
+
+ @Test
+ public void testELEVEN_LABSShouldSerializeToEnum() {
+
+ TTSEngineName expectedValue = TTSEngineName.ELEVEN_LABS;
+ TTSEngineName calculatedValue = TTSEngineName.fromValue("ElevenLabs");
+ Assert.assertEquals(expectedValue, calculatedValue);
+ }
+
+ @Test
+ public void testELEVEN_LABSShouldDeserializeToString() {
+ TTSEngineName test = TTSEngineName.ELEVEN_LABS;
+ String expectedValue = "ElevenLabs";
+ String calculatedValue = test.toString();
+ Assert.assertEquals(expectedValue, calculatedValue);
+ }
+}
diff --git a/src/test/java/com/github/freeclimbapi/models/ApplicationListTest.java b/src/test/java/com/github/freeclimbapi/models/ApplicationListTest.java
index 93bad50..7bf46a2 100644
--- a/src/test/java/com/github/freeclimbapi/models/ApplicationListTest.java
+++ b/src/test/java/com/github/freeclimbapi/models/ApplicationListTest.java
@@ -108,8 +108,8 @@ public void equalsTrueTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setApplications(testList);
+ List testsetApplicationsList = new ArrayList();
+ test1.setApplications(testsetApplicationsList);
ApplicationList test2 = new ApplicationList();
test2.setTotal(1);
@@ -125,8 +125,8 @@ public void equalsTrueTest() {
test2.setNextPageUri("TS");
- List testList2 = testList;
- test2.setApplications(testList2);
+ List testsetApplicationsList2 = testsetApplicationsList;
+ test2.setApplications(testsetApplicationsList2);
Assert.assertTrue(test1.equals(test2));
}
@@ -149,8 +149,8 @@ public void equalsFalseTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setApplications(testList);
+ List testsetApplicationsList = new ArrayList();
+ test1.setApplications(testsetApplicationsList);
ApplicationList test2 = new ApplicationList();
test2.setTotal(0);
@@ -166,8 +166,8 @@ public void equalsFalseTest() {
test2.setNextPageUri("TS2");
- List testList2 = null;
- test2.setApplications(testList2);
+ List testsetApplicationsList2 = null;
+ test2.setApplications(testsetApplicationsList2);
Assert.assertFalse(test1.equals(test2));
}
@@ -190,8 +190,8 @@ public void hashCodeTypeTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setApplications(testList);
+ List testsetApplicationsList = new ArrayList();
+ test1.setApplications(testsetApplicationsList);
int hashCode1 = test1.hashCode();
Assert.assertTrue(Integer.class.isInstance(hashCode1));
@@ -215,8 +215,8 @@ public void toStringEqualsTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setApplications(testList);
+ List testsetApplicationsList = new ArrayList();
+ test1.setApplications(testsetApplicationsList);
ApplicationList test2 = new ApplicationList();
test2.setTotal(1);
@@ -232,8 +232,8 @@ public void toStringEqualsTest() {
test2.setNextPageUri("TS");
- List testList2 = testList;
- test2.setApplications(testList2);
+ List testsetApplicationsList2 = testsetApplicationsList;
+ test2.setApplications(testsetApplicationsList2);
String toString1 = test1.toString();
String toString2 = test2.toString();
@@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setApplications(testList);
+ List testsetApplicationsList = new ArrayList();
+ test1.setApplications(testsetApplicationsList);
ApplicationList test2 = new ApplicationList();
test2.setTotal(1);
@@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() {
test2.setNextPageUri("TS");
- List testList2 = testList;
- test2.setApplications(testList2);
+ List testsetApplicationsList2 = testsetApplicationsList;
+ test2.setApplications(testsetApplicationsList2);
Assert.assertEquals(test1.hashCode(), test2.hashCode());
}
@@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setApplications(testList);
+ List testsetApplicationsList = new ArrayList();
+ test1.setApplications(testsetApplicationsList);
ApplicationList test2 = new ApplicationList();
test2.setTotal(0);
@@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() {
test2.setNextPageUri("TS2");
- List testList2 = null;
- test2.setApplications(testList2);
+ List testsetApplicationsList2 = null;
+ test2.setApplications(testsetApplicationsList2);
Assert.assertNotEquals(test1.hashCode(), test2.hashCode());
}
@@ -338,8 +338,8 @@ public void toStringTypeTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setApplications(testList);
+ List testsetApplicationsList = new ArrayList();
+ test1.setApplications(testsetApplicationsList);
String toString1 = test1.toString();
Assert.assertTrue(String.class.isInstance(toString1));
diff --git a/src/test/java/com/github/freeclimbapi/models/AvailableNumberListTest.java b/src/test/java/com/github/freeclimbapi/models/AvailableNumberListTest.java
index 67de0ba..fb61e41 100644
--- a/src/test/java/com/github/freeclimbapi/models/AvailableNumberListTest.java
+++ b/src/test/java/com/github/freeclimbapi/models/AvailableNumberListTest.java
@@ -108,8 +108,8 @@ public void equalsTrueTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setAvailablePhoneNumbers(testList);
+ List testsetAvailablePhoneNumbersList = new ArrayList();
+ test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList);
AvailableNumberList test2 = new AvailableNumberList();
test2.setTotal(1);
@@ -125,8 +125,8 @@ public void equalsTrueTest() {
test2.setNextPageUri("TS");
- List testList2 = testList;
- test2.setAvailablePhoneNumbers(testList2);
+ List testsetAvailablePhoneNumbersList2 = testsetAvailablePhoneNumbersList;
+ test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2);
Assert.assertTrue(test1.equals(test2));
}
@@ -149,8 +149,8 @@ public void equalsFalseTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setAvailablePhoneNumbers(testList);
+ List testsetAvailablePhoneNumbersList = new ArrayList();
+ test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList);
AvailableNumberList test2 = new AvailableNumberList();
test2.setTotal(0);
@@ -166,8 +166,8 @@ public void equalsFalseTest() {
test2.setNextPageUri("TS2");
- List testList2 = null;
- test2.setAvailablePhoneNumbers(testList2);
+ List testsetAvailablePhoneNumbersList2 = null;
+ test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2);
Assert.assertFalse(test1.equals(test2));
}
@@ -190,8 +190,8 @@ public void hashCodeTypeTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setAvailablePhoneNumbers(testList);
+ List testsetAvailablePhoneNumbersList = new ArrayList();
+ test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList);
int hashCode1 = test1.hashCode();
Assert.assertTrue(Integer.class.isInstance(hashCode1));
@@ -215,8 +215,8 @@ public void toStringEqualsTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setAvailablePhoneNumbers(testList);
+ List testsetAvailablePhoneNumbersList = new ArrayList();
+ test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList);
AvailableNumberList test2 = new AvailableNumberList();
test2.setTotal(1);
@@ -232,8 +232,8 @@ public void toStringEqualsTest() {
test2.setNextPageUri("TS");
- List testList2 = testList;
- test2.setAvailablePhoneNumbers(testList2);
+ List testsetAvailablePhoneNumbersList2 = testsetAvailablePhoneNumbersList;
+ test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2);
String toString1 = test1.toString();
String toString2 = test2.toString();
@@ -258,8 +258,8 @@ public void hashCodeEqualsTrueTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setAvailablePhoneNumbers(testList);
+ List testsetAvailablePhoneNumbersList = new ArrayList();
+ test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList);
AvailableNumberList test2 = new AvailableNumberList();
test2.setTotal(1);
@@ -275,8 +275,8 @@ public void hashCodeEqualsTrueTest() {
test2.setNextPageUri("TS");
- List testList2 = testList;
- test2.setAvailablePhoneNumbers(testList2);
+ List testsetAvailablePhoneNumbersList2 = testsetAvailablePhoneNumbersList;
+ test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2);
Assert.assertEquals(test1.hashCode(), test2.hashCode());
}
@@ -298,8 +298,8 @@ public void hashCodeEqualsFalseTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setAvailablePhoneNumbers(testList);
+ List testsetAvailablePhoneNumbersList = new ArrayList();
+ test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList);
AvailableNumberList test2 = new AvailableNumberList();
test2.setTotal(0);
@@ -315,8 +315,8 @@ public void hashCodeEqualsFalseTest() {
test2.setNextPageUri("TS2");
- List testList2 = null;
- test2.setAvailablePhoneNumbers(testList2);
+ List testsetAvailablePhoneNumbersList2 = null;
+ test2.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList2);
Assert.assertNotEquals(test1.hashCode(), test2.hashCode());
}
@@ -338,8 +338,8 @@ public void toStringTypeTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setAvailablePhoneNumbers(testList);
+ List testsetAvailablePhoneNumbersList = new ArrayList();
+ test1.setAvailablePhoneNumbers(testsetAvailablePhoneNumbersList);
String toString1 = test1.toString();
Assert.assertTrue(String.class.isInstance(toString1));
diff --git a/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java b/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java
index c6540d8..144dc37 100644
--- a/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java
+++ b/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java
@@ -48,20 +48,6 @@ public void phoneNumberTest() {
Assert.assertEquals("TEST_STRING", model.getPhoneNumber());
}
- /** Test the property 'voiceEnabled' */
- @Test
- public void voiceEnabledTest() {
- model.setVoiceEnabled(false);
- Assert.assertEquals(false, model.getVoiceEnabled());
- }
-
- /** Test the property 'smsEnabled' */
- @Test
- public void smsEnabledTest() {
- model.setSmsEnabled(false);
- Assert.assertEquals(false, model.getSmsEnabled());
- }
-
/** Test the property 'region' */
@Test
public void regionTest() {
@@ -90,10 +76,6 @@ public void equalsTrueTest() {
test1.setPhoneNumber("TS");
- test1.setVoiceEnabled(true);
-
- test1.setSmsEnabled(true);
-
test1.setRegion("TS");
test1.setCountry("TS");
@@ -107,10 +89,6 @@ public void equalsTrueTest() {
test2.setPhoneNumber("TS");
- test2.setVoiceEnabled(true);
-
- test2.setSmsEnabled(true);
-
test2.setRegion("TS");
test2.setCountry("TS");
@@ -130,10 +108,6 @@ public void equalsFalseTest() {
test1.setPhoneNumber("TS");
- test1.setVoiceEnabled(true);
-
- test1.setSmsEnabled(true);
-
test1.setRegion("TS");
test1.setCountry("TS");
@@ -147,10 +121,6 @@ public void equalsFalseTest() {
test2.setPhoneNumber("TS2");
- test2.setVoiceEnabled(false);
-
- test2.setSmsEnabled(false);
-
test2.setRegion("TS2");
test2.setCountry("TS2");
@@ -170,10 +140,6 @@ public void hashCodeTypeTest() {
test1.setPhoneNumber("TS");
- test1.setVoiceEnabled(true);
-
- test1.setSmsEnabled(true);
-
test1.setRegion("TS");
test1.setCountry("TS");
@@ -194,10 +160,6 @@ public void toStringEqualsTest() {
test1.setPhoneNumber("TS");
- test1.setVoiceEnabled(true);
-
- test1.setSmsEnabled(true);
-
test1.setRegion("TS");
test1.setCountry("TS");
@@ -211,10 +173,6 @@ public void toStringEqualsTest() {
test2.setPhoneNumber("TS");
- test2.setVoiceEnabled(true);
-
- test2.setSmsEnabled(true);
-
test2.setRegion("TS");
test2.setCountry("TS");
@@ -236,10 +194,6 @@ public void hashCodeEqualsTrueTest() {
test1.setPhoneNumber("TS");
- test1.setVoiceEnabled(true);
-
- test1.setSmsEnabled(true);
-
test1.setRegion("TS");
test1.setCountry("TS");
@@ -253,10 +207,6 @@ public void hashCodeEqualsTrueTest() {
test2.setPhoneNumber("TS");
- test2.setVoiceEnabled(true);
-
- test2.setSmsEnabled(true);
-
test2.setRegion("TS");
test2.setCountry("TS");
@@ -276,10 +226,6 @@ public void hashCodeEqualsFalseTest() {
test1.setPhoneNumber("TS");
- test1.setVoiceEnabled(true);
-
- test1.setSmsEnabled(true);
-
test1.setRegion("TS");
test1.setCountry("TS");
@@ -293,10 +239,6 @@ public void hashCodeEqualsFalseTest() {
test2.setPhoneNumber("TS2");
- test2.setVoiceEnabled(false);
-
- test2.setSmsEnabled(false);
-
test2.setRegion("TS2");
test2.setCountry("TS2");
@@ -316,10 +258,6 @@ public void toStringTypeTest() {
test1.setPhoneNumber("TS");
- test1.setVoiceEnabled(true);
-
- test1.setSmsEnabled(true);
-
test1.setRegion("TS");
test1.setCountry("TS");
diff --git a/src/test/java/com/github/freeclimbapi/models/BlobListResponseTest.java b/src/test/java/com/github/freeclimbapi/models/BlobListResponseTest.java
new file mode 100644
index 0000000..3fcc9b2
--- /dev/null
+++ b/src/test/java/com/github/freeclimbapi/models/BlobListResponseTest.java
@@ -0,0 +1,347 @@
+/*
+ * FreeClimb API
+ * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Contact: support@freeclimb.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.github.freeclimbapi;
+
+import com.github.freeclimbapi.enums.*;
+import com.github.freeclimbapi.models.*;
+import java.util.*;
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.Assert;
+import org.junit.Test;
+
+/** Model tests for BlobListResponse */
+public class BlobListResponseTest {
+
+ private final BlobListResponse model = new BlobListResponse();
+
+ /** Test the property 'total' */
+ @Test
+ public void totalTest() {
+
+ model.setTotal(1);
+ Assert.assertEquals(1, (int) model.getTotal());
+ }
+
+ /** Test the property 'start' */
+ @Test
+ public void startTest() {
+
+ model.setStart(1);
+ Assert.assertEquals(1, (int) model.getStart());
+ }
+
+ /** Test the property 'end' */
+ @Test
+ public void endTest() {
+
+ model.setEnd(1);
+ Assert.assertEquals(1, (int) model.getEnd());
+ }
+
+ /** Test the property 'page' */
+ @Test
+ public void pageTest() {
+
+ model.setPage(1);
+ Assert.assertEquals(1, (int) model.getPage());
+ }
+
+ /** Test the property 'numPages' */
+ @Test
+ public void numPagesTest() {
+
+ model.setNumPages(1);
+ Assert.assertEquals(1, (int) model.getNumPages());
+ }
+
+ /** Test the property 'pageSize' */
+ @Test
+ public void pageSizeTest() {
+
+ model.setPageSize(1);
+ Assert.assertEquals(1, (int) model.getPageSize());
+ }
+
+ /** Test the property 'nextPageUri' */
+ @Test
+ public void nextPageUriTest() {
+
+ model.setNextPageUri("TEST_STRING");
+ Assert.assertEquals("TEST_STRING", model.getNextPageUri());
+ }
+
+ /** Test the property 'blobs' */
+ @Test
+ public void blobsTest() {
+
+ List testList = new ArrayList();
+ model.setBlobs(testList);
+ Assert.assertEquals(testList, model.getBlobs());
+ }
+
+ /** Test the method 'equalsTrue' */
+ @Test
+ public void equalsTrueTest() {
+ BlobListResponse test1 = new BlobListResponse();
+ test1.setTotal(1);
+
+ test1.setStart(1);
+
+ test1.setEnd(1);
+
+ test1.setPage(1);
+
+ test1.setNumPages(1);
+
+ test1.setPageSize(1);
+
+ test1.setNextPageUri("TS");
+
+ List testsetBlobsList = new ArrayList();
+ test1.setBlobs(testsetBlobsList);
+ BlobListResponse test2 = new BlobListResponse();
+ test2.setTotal(1);
+
+ test2.setStart(1);
+
+ test2.setEnd(1);
+
+ test2.setPage(1);
+
+ test2.setNumPages(1);
+
+ test2.setPageSize(1);
+
+ test2.setNextPageUri("TS");
+
+ List testsetBlobsList2 = testsetBlobsList;
+ test2.setBlobs(testsetBlobsList2);
+
+ Assert.assertTrue(test1.equals(test2));
+ }
+
+ /** Test the method 'equalsFalse' */
+ @Test
+ public void equalsFalseTest() {
+ BlobListResponse test1 = new BlobListResponse();
+ test1.setTotal(1);
+
+ test1.setStart(1);
+
+ test1.setEnd(1);
+
+ test1.setPage(1);
+
+ test1.setNumPages(1);
+
+ test1.setPageSize(1);
+
+ test1.setNextPageUri("TS");
+
+ List testsetBlobsList = new ArrayList();
+ test1.setBlobs(testsetBlobsList);
+ BlobListResponse test2 = new BlobListResponse();
+ test2.setTotal(0);
+
+ test2.setStart(0);
+
+ test2.setEnd(0);
+
+ test2.setPage(0);
+
+ test2.setNumPages(0);
+
+ test2.setPageSize(0);
+
+ test2.setNextPageUri("TS2");
+
+ List testsetBlobsList2 = null;
+ test2.setBlobs(testsetBlobsList2);
+
+ Assert.assertFalse(test1.equals(test2));
+ }
+
+ /** Test the method 'hashCodeType' */
+ @Test
+ public void hashCodeTypeTest() {
+ BlobListResponse test1 = new BlobListResponse();
+ test1.setTotal(1);
+
+ test1.setStart(1);
+
+ test1.setEnd(1);
+
+ test1.setPage(1);
+
+ test1.setNumPages(1);
+
+ test1.setPageSize(1);
+
+ test1.setNextPageUri("TS");
+
+ List testsetBlobsList = new ArrayList();
+ test1.setBlobs(testsetBlobsList);
+
+ int hashCode1 = test1.hashCode();
+ Assert.assertTrue(Integer.class.isInstance(hashCode1));
+ }
+
+ /** Test the method 'toStringEquals' */
+ @Test
+ public void toStringEqualsTest() {
+ BlobListResponse test1 = new BlobListResponse();
+ test1.setTotal(1);
+
+ test1.setStart(1);
+
+ test1.setEnd(1);
+
+ test1.setPage(1);
+
+ test1.setNumPages(1);
+
+ test1.setPageSize(1);
+
+ test1.setNextPageUri("TS");
+
+ List testsetBlobsList = new ArrayList();
+ test1.setBlobs(testsetBlobsList);
+ BlobListResponse test2 = new BlobListResponse();
+ test2.setTotal(1);
+
+ test2.setStart(1);
+
+ test2.setEnd(1);
+
+ test2.setPage(1);
+
+ test2.setNumPages(1);
+
+ test2.setPageSize(1);
+
+ test2.setNextPageUri("TS");
+
+ List testsetBlobsList2 = testsetBlobsList;
+ test2.setBlobs(testsetBlobsList2);
+
+ String toString1 = test1.toString();
+ String toString2 = test2.toString();
+ Assert.assertEquals(toString1, toString2);
+ }
+
+ /** Test the method 'hashCodeEqualsTrue' */
+ @Test
+ public void hashCodeEqualsTrueTest() {
+ BlobListResponse test1 = new BlobListResponse();
+ test1.setTotal(1);
+
+ test1.setStart(1);
+
+ test1.setEnd(1);
+
+ test1.setPage(1);
+
+ test1.setNumPages(1);
+
+ test1.setPageSize(1);
+
+ test1.setNextPageUri("TS");
+
+ List testsetBlobsList = new ArrayList();
+ test1.setBlobs(testsetBlobsList);
+ BlobListResponse test2 = new BlobListResponse();
+ test2.setTotal(1);
+
+ test2.setStart(1);
+
+ test2.setEnd(1);
+
+ test2.setPage(1);
+
+ test2.setNumPages(1);
+
+ test2.setPageSize(1);
+
+ test2.setNextPageUri("TS");
+
+ List testsetBlobsList2 = testsetBlobsList;
+ test2.setBlobs(testsetBlobsList2);
+ Assert.assertEquals(test1.hashCode(), test2.hashCode());
+ }
+
+ /** Test the method 'hashCodeEqualsFalse' */
+ @Test
+ public void hashCodeEqualsFalseTest() {
+ BlobListResponse test1 = new BlobListResponse();
+ test1.setTotal(1);
+
+ test1.setStart(1);
+
+ test1.setEnd(1);
+
+ test1.setPage(1);
+
+ test1.setNumPages(1);
+
+ test1.setPageSize(1);
+
+ test1.setNextPageUri("TS");
+
+ List testsetBlobsList = new ArrayList();
+ test1.setBlobs(testsetBlobsList);
+ BlobListResponse test2 = new BlobListResponse();
+ test2.setTotal(0);
+
+ test2.setStart(0);
+
+ test2.setEnd(0);
+
+ test2.setPage(0);
+
+ test2.setNumPages(0);
+
+ test2.setPageSize(0);
+
+ test2.setNextPageUri("TS2");
+
+ List testsetBlobsList2 = null;
+ test2.setBlobs(testsetBlobsList2);
+ Assert.assertNotEquals(test1.hashCode(), test2.hashCode());
+ }
+
+ /** Test the method 'toStringType' */
+ @Test
+ public void toStringTypeTest() {
+ BlobListResponse test1 = new BlobListResponse();
+ test1.setTotal(1);
+
+ test1.setStart(1);
+
+ test1.setEnd(1);
+
+ test1.setPage(1);
+
+ test1.setNumPages(1);
+
+ test1.setPageSize(1);
+
+ test1.setNextPageUri("TS");
+
+ List testsetBlobsList = new ArrayList();
+ test1.setBlobs(testsetBlobsList);
+
+ String toString1 = test1.toString();
+ Assert.assertTrue(String.class.isInstance(toString1));
+ }
+}
diff --git a/src/test/java/com/github/freeclimbapi/models/BlobResultTest.java b/src/test/java/com/github/freeclimbapi/models/BlobResultTest.java
new file mode 100644
index 0000000..8158381
--- /dev/null
+++ b/src/test/java/com/github/freeclimbapi/models/BlobResultTest.java
@@ -0,0 +1,362 @@
+/*
+ * FreeClimb API
+ * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ * Contact: support@freeclimb.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.github.freeclimbapi;
+
+import com.github.freeclimbapi.enums.*;
+import com.github.freeclimbapi.models.*;
+import java.util.*;
+import org.junit.Assert;
+import org.junit.Test;
+import org.threeten.bp.OffsetDateTime;
+
+/** Model tests for BlobResult */
+public class BlobResultTest {
+
+ private final BlobResult model = new BlobResult();
+
+ /** Test the property 'blobId' */
+ @Test
+ public void blobIdTest() {
+
+ model.setBlobId("TEST_STRING");
+ Assert.assertEquals("TEST_STRING", model.getBlobId());
+ }
+
+ /** Test the property 'accountId' */
+ @Test
+ public void accountIdTest() {
+
+ model.setAccountId("TEST_STRING");
+ Assert.assertEquals("TEST_STRING", model.getAccountId());
+ }
+
+ /** Test the property 'alias' */
+ @Test
+ public void aliasTest() {
+
+ model.setAlias("TEST_STRING");
+ Assert.assertEquals("TEST_STRING", model.getAlias());
+ }
+
+ /** Test the property 'revision' */
+ @Test
+ public void revisionTest() {
+
+ model.setRevision(1);
+ Assert.assertEquals(1, (int) model.getRevision());
+ }
+
+ /** Test the property 'dateCreated' */
+ @Test
+ public void dateCreatedTest() {
+ model.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+ Assert.assertEquals(OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getDateCreated());
+ }
+
+ /** Test the property 'dateUpdated' */
+ @Test
+ public void dateUpdatedTest() {
+ model.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+ Assert.assertEquals(OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getDateUpdated());
+ }
+
+ /** Test the property 'expiresAt' */
+ @Test
+ public void expiresAtTest() {
+ model.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+ Assert.assertEquals(OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getExpiresAt());
+ }
+
+ /** Test the property 'blob' */
+ @Test
+ public void blobTest() {
+
+ Object object = new Object();
+ model.setBlob(object);
+ Assert.assertEquals(object.getClass(), Object.class);
+ }
+
+ /** Test the method 'equalsTrue' */
+ @Test
+ public void equalsTrueTest() {
+ BlobResult test1 = new BlobResult();
+
+ test1.setBlobId("TS");
+
+ test1.setAccountId("TS");
+
+ test1.setAlias("TS");
+
+ test1.setRevision(1);
+
+ test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject = new Object();
+ test1.setBlob(testObjectObject);
+
+ BlobResult test2 = new BlobResult();
+
+ test2.setBlobId("TS");
+
+ test2.setAccountId("TS");
+
+ test2.setAlias("TS");
+
+ test2.setRevision(1);
+
+ test2.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test2.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test2.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject2 = testObjectObject;
+ test2.setBlob(testObjectObject2);
+
+ Assert.assertTrue(test1.equals(test2));
+ }
+
+ /** Test the method 'equalsFalse' */
+ @Test
+ public void equalsFalseTest() {
+ BlobResult test1 = new BlobResult();
+
+ test1.setBlobId("TS");
+
+ test1.setAccountId("TS");
+
+ test1.setAlias("TS");
+
+ test1.setRevision(1);
+
+ test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject = new Object();
+ test1.setBlob(testObjectObject);
+
+ BlobResult test2 = new BlobResult();
+
+ test2.setBlobId("TS2");
+
+ test2.setAccountId("TS2");
+
+ test2.setAlias("TS2");
+
+ test2.setRevision(0);
+
+ test2.setDateCreated(OffsetDateTime.parse("2024-07-05T15:17:05Z"));
+
+ test2.setDateUpdated(OffsetDateTime.parse("2024-07-05T15:17:05Z"));
+
+ test2.setExpiresAt(OffsetDateTime.parse("2024-07-05T15:17:05Z"));
+
+ Object testObjectObject2 = new Object();
+ test2.setBlob(testObjectObject2);
+
+ Assert.assertFalse(test1.equals(test2));
+ }
+
+ /** Test the method 'hashCodeType' */
+ @Test
+ public void hashCodeTypeTest() {
+ BlobResult test1 = new BlobResult();
+
+ test1.setBlobId("TS");
+
+ test1.setAccountId("TS");
+
+ test1.setAlias("TS");
+
+ test1.setRevision(1);
+
+ test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject = new Object();
+ test1.setBlob(testObjectObject);
+
+ int hashCode1 = test1.hashCode();
+ Assert.assertTrue(Integer.class.isInstance(hashCode1));
+ }
+
+ /** Test the method 'toStringEquals' */
+ @Test
+ public void toStringEqualsTest() {
+ BlobResult test1 = new BlobResult();
+
+ test1.setBlobId("TS");
+
+ test1.setAccountId("TS");
+
+ test1.setAlias("TS");
+
+ test1.setRevision(1);
+
+ test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject = new Object();
+ test1.setBlob(testObjectObject);
+
+ BlobResult test2 = new BlobResult();
+
+ test2.setBlobId("TS");
+
+ test2.setAccountId("TS");
+
+ test2.setAlias("TS");
+
+ test2.setRevision(1);
+
+ test2.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test2.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test2.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject2 = testObjectObject;
+ test2.setBlob(testObjectObject2);
+
+ String toString1 = test1.toString();
+ String toString2 = test2.toString();
+ Assert.assertEquals(toString1, toString2);
+ }
+
+ /** Test the method 'hashCodeEqualsTrue' */
+ @Test
+ public void hashCodeEqualsTrueTest() {
+ BlobResult test1 = new BlobResult();
+
+ test1.setBlobId("TS");
+
+ test1.setAccountId("TS");
+
+ test1.setAlias("TS");
+
+ test1.setRevision(1);
+
+ test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject = new Object();
+ test1.setBlob(testObjectObject);
+
+ BlobResult test2 = new BlobResult();
+
+ test2.setBlobId("TS");
+
+ test2.setAccountId("TS");
+
+ test2.setAlias("TS");
+
+ test2.setRevision(1);
+
+ test2.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test2.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test2.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject2 = testObjectObject;
+ test2.setBlob(testObjectObject2);
+
+ Assert.assertEquals(test1.hashCode(), test2.hashCode());
+ }
+
+ /** Test the method 'hashCodeEqualsFalse' */
+ @Test
+ public void hashCodeEqualsFalseTest() {
+ BlobResult test1 = new BlobResult();
+
+ test1.setBlobId("TS");
+
+ test1.setAccountId("TS");
+
+ test1.setAlias("TS");
+
+ test1.setRevision(1);
+
+ test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject = new Object();
+ test1.setBlob(testObjectObject);
+
+ BlobResult test2 = new BlobResult();
+
+ test2.setBlobId("TS2");
+
+ test2.setAccountId("TS2");
+
+ test2.setAlias("TS2");
+
+ test2.setRevision(0);
+
+ test2.setDateCreated(OffsetDateTime.parse("2024-07-05T15:17:05Z"));
+
+ test2.setDateUpdated(OffsetDateTime.parse("2024-07-05T15:17:05Z"));
+
+ test2.setExpiresAt(OffsetDateTime.parse("2024-07-05T15:17:05Z"));
+
+ Object testObjectObject2 = new Object();
+ test2.setBlob(testObjectObject2);
+
+ Assert.assertNotEquals(test1.hashCode(), test2.hashCode());
+ }
+
+ /** Test the method 'toStringType' */
+ @Test
+ public void toStringTypeTest() {
+ BlobResult test1 = new BlobResult();
+
+ test1.setBlobId("TS");
+
+ test1.setAccountId("TS");
+
+ test1.setAlias("TS");
+
+ test1.setRevision(1);
+
+ test1.setDateCreated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setDateUpdated(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ test1.setExpiresAt(OffsetDateTime.parse("2022-07-05T15:17:05Z"));
+
+ Object testObjectObject = new Object();
+ test1.setBlob(testObjectObject);
+
+ String toString1 = test1.toString();
+ Assert.assertTrue(String.class.isInstance(toString1));
+ }
+}
diff --git a/src/test/java/com/github/freeclimbapi/models/CallListTest.java b/src/test/java/com/github/freeclimbapi/models/CallListTest.java
index ab008e1..d9ffb35 100644
--- a/src/test/java/com/github/freeclimbapi/models/CallListTest.java
+++ b/src/test/java/com/github/freeclimbapi/models/CallListTest.java
@@ -108,8 +108,8 @@ public void equalsTrueTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setCalls(testList);
+ List testsetCallsList = new ArrayList();
+ test1.setCalls(testsetCallsList);
CallList test2 = new CallList();
test2.setTotal(1);
@@ -125,8 +125,8 @@ public void equalsTrueTest() {
test2.setNextPageUri("TS");
- List testList2 = testList;
- test2.setCalls(testList2);
+ List testsetCallsList2 = testsetCallsList;
+ test2.setCalls(testsetCallsList2);
Assert.assertTrue(test1.equals(test2));
}
@@ -149,8 +149,8 @@ public void equalsFalseTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setCalls(testList);
+ List testsetCallsList = new ArrayList();
+ test1.setCalls(testsetCallsList);
CallList test2 = new CallList();
test2.setTotal(0);
@@ -166,8 +166,8 @@ public void equalsFalseTest() {
test2.setNextPageUri("TS2");
- List testList2 = null;
- test2.setCalls(testList2);
+ List testsetCallsList2 = null;
+ test2.setCalls(testsetCallsList2);
Assert.assertFalse(test1.equals(test2));
}
@@ -190,8 +190,8 @@ public void hashCodeTypeTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setCalls(testList);
+ List testsetCallsList = new ArrayList();
+ test1.setCalls(testsetCallsList);
int hashCode1 = test1.hashCode();
Assert.assertTrue(Integer.class.isInstance(hashCode1));
@@ -215,8 +215,8 @@ public void toStringEqualsTest() {
test1.setNextPageUri("TS");
- List testList = new ArrayList();
- test1.setCalls(testList);
+ List testsetCallsList = new ArrayList();
+ test1.setCalls(testsetCallsList);
CallList test2 = new CallList();
test2.setTotal(1);
@@ -232,8 +232,8 @@ public void toStringEqualsTest() {
test2.setNextPageUri("TS");
- List