-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBlockedWebhookTest.java
More file actions
93 lines (79 loc) · 2.22 KB
/
BlockedWebhookTest.java
File metadata and controls
93 lines (79 loc) · 2.22 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
/*
* 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 com.bandwidth.sdk.model.BlockedWebhook;
import com.bandwidth.sdk.model.TfvCallbackStatusEnum;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.CoreMatchers.instanceOf;
/**
* Model tests for BlockedWebhook
*/
public class BlockedWebhookTest {
private final BlockedWebhook model = new BlockedWebhook()
.accountId("accountId")
.phoneNumber("phoneNumber")
.status(TfvCallbackStatusEnum.VERIFIED)
.internalTicketNumber(UUID.randomUUID().toString())
.blocked(true)
.blockedReason("blockedReason");
/**
* Model tests for BlockedWebhook
*/
@Test
public void testBlockedWebhook() {
assertThat(model, instanceOf(BlockedWebhook.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 'status'
*/
@Test
public void statusTest() {
assertThat(model.getStatus(), instanceOf(TfvCallbackStatusEnum.class));
}
/**
* Test the property 'internalTicketNumber'
*/
@Test
public void internalTicketNumberTest() {
assertThat(model.getInternalTicketNumber(), instanceOf(String.class));
}
/**
* Test the property 'blocked'
*/
@Test
public void blockedTest() {
assertThat(model.getBlocked(), instanceOf(Boolean.class));
}
/**
* Test the property 'blockedReason'
*/
@Test
public void blockedReasonTest() {
assertThat(model.getBlockedReason(), instanceOf(String.class));
}
}