-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFailureWebhookTest.java
More file actions
94 lines (81 loc) · 2.25 KB
/
FailureWebhookTest.java
File metadata and controls
94 lines (81 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
* Bandwidth
* Bandwidth's Communication APIs
*
* The version of the OpenAPI document: 1.0.0
* Contact: letstalk@bandwidth.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.bandwidth.sdk.unit.models;
import org.junit.jupiter.api.Test;
import java.util.UUID;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;
import com.bandwidth.sdk.model.FailureWebhook;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.CoreMatchers.instanceOf;
/**
* Model tests for FailureWebhook
*/
public class FailureWebhookTest {
private final FailureWebhook model = new FailureWebhook()
.accountId("accountId")
.phoneNumber("phoneNumber")
.errorCode("errorCode")
.errorMessage("errorMessage")
.errors(new ArrayList<String>(Arrays.asList("errors")))
.internalTicketNumber(UUID.randomUUID().toString());
/**
* Model tests for FailureWebhook
*/
@Test
public void testFailureWebhook() {
assertThat(model, instanceOf(FailureWebhook.class));
}
/**
* Test the property 'accountId'
*/
@Test
public void accountIdTest() {
assertThat(model.getAccountId(), instanceOf(String.class));
}
/**
* Test the property 'phoneNumber'
*/
@Test
public void phoneNumberTest() {
assertThat(model.getPhoneNumber(), instanceOf(String.class));
}
/**
* Test the property 'errorCode'
*/
@Test
public void errorCodeTest() {
assertThat(model.getErrorCode(), instanceOf(String.class));
}
/**
* Test the property 'errorMessage'
*/
@Test
public void errorMessageTest() {
assertThat(model.getErrorMessage(), instanceOf(String.class));
}
/**
* Test the property 'errors'
*/
@Test
public void errorsTest() {
assertThat(model.getErrors(), instanceOf(List.class));
}
/**
* Test the property 'internalTicketNumber'
*/
@Test
public void internalTicketNumberTest() {
assertThat(model.getInternalTicketNumber(), instanceOf(String.class));
}
}