Skip to content

Commit 28df133

Browse files
committed
blocked webhook test
1 parent 965be9b commit 28df133

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* Bandwidth
3+
* Bandwidth's Communication APIs
4+
*
5+
* The version of the OpenAPI document: 1.0.0
6+
* Contact: [email protected]
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package com.bandwidth.sdk.unit.models;
15+
16+
import org.junit.jupiter.api.Test;
17+
18+
import java.util.UUID;
19+
import com.bandwidth.sdk.model.BlockedWebhook;
20+
import com.bandwidth.sdk.model.TfvCallbackStatusEnum;
21+
22+
import static org.hamcrest.MatcherAssert.assertThat;
23+
import static org.hamcrest.CoreMatchers.instanceOf;
24+
25+
/**
26+
* Model tests for BlockedWebhook
27+
*/
28+
public class BlockedWebhookTest {
29+
private final BlockedWebhook model = new BlockedWebhook()
30+
.accountId("accountId")
31+
.phoneNumber("phoneNumber")
32+
.status(TfvCallbackStatusEnum.VERIFIED)
33+
.internalTicketNumber(UUID.randomUUID())
34+
.blocked(true)
35+
.blockedReason("blockedReason");
36+
37+
/**
38+
* Model tests for BlockedWebhook
39+
*/
40+
@Test
41+
public void testBlockedWebhook() {
42+
assertThat(model, instanceOf(BlockedWebhook.class));
43+
}
44+
45+
/**
46+
* Test the property 'accountId'
47+
*/
48+
@Test
49+
public void accountIdTest() {
50+
assertThat(model.getAccountId(), instanceOf(String.class));
51+
}
52+
53+
/**
54+
* Test the property 'phoneNumber'
55+
*/
56+
@Test
57+
public void phoneNumberTest() {
58+
assertThat(model.getPhoneNumber(), instanceOf(String.class));
59+
}
60+
61+
/**
62+
* Test the property 'status'
63+
*/
64+
@Test
65+
public void statusTest() {
66+
assertThat(model.getStatus(), instanceOf(TfvCallbackStatusEnum.class));
67+
}
68+
69+
/**
70+
* Test the property 'internalTicketNumber'
71+
*/
72+
@Test
73+
public void internalTicketNumberTest() {
74+
assertThat(model.getInternalTicketNumber(), instanceOf(UUID.class));
75+
}
76+
77+
/**
78+
* Test the property 'blocked'
79+
*/
80+
@Test
81+
public void blockedTest() {
82+
assertThat(model.getBlocked(), instanceOf(Boolean.class));
83+
}
84+
85+
/**
86+
* Test the property 'blockedReason'
87+
*/
88+
@Test
89+
public void blockedReasonTest() {
90+
assertThat(model.getBlockedReason(), instanceOf(String.class));
91+
}
92+
93+
}

0 commit comments

Comments
 (0)