-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMessageCallbackTest.java
More file actions
102 lines (88 loc) · 2.4 KB
/
MessageCallbackTest.java
File metadata and controls
102 lines (88 loc) · 2.4 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
95
96
97
98
99
100
101
102
/*
* 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.time.OffsetDateTime;
import com.bandwidth.sdk.model.MessageCallback;
import com.bandwidth.sdk.model.CallbackTypeEnum;
import com.bandwidth.sdk.model.MessageCallbackMessage;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.CoreMatchers.instanceOf;
/**
* Model tests for MessageCallback
*/
public class MessageCallbackTest {
private final MessageCallback model = new MessageCallback()
.time(OffsetDateTime.now())
.type(CallbackTypeEnum.DELIVERED)
.to("+1234567890")
.description("description")
.message(new MessageCallbackMessage())
.errorCode(123)
.carrierName("carrierName");
/**
* Model tests for MessageCallback
*/
@Test
public void testMessageCallback() {
assertThat(model, instanceOf(MessageCallback.class));
}
/**
* Test the property 'time'
*/
@Test
public void timeTest() {
assertThat(model.getTime(), instanceOf(OffsetDateTime.class));
}
/**
* Test the property 'type'
*/
@Test
public void typeTest() {
assertThat(model.getType(), instanceOf(CallbackTypeEnum.class));
}
/**
* Test the property 'to'
*/
@Test
public void toTest() {
assertThat(model.getTo(), instanceOf(String.class));
}
/**
* Test the property 'description'
*/
@Test
public void descriptionTest() {
assertThat(model.getDescription(), instanceOf(String.class));
}
/**
* Test the property 'message'
*/
@Test
public void messageTest() {
assertThat(model.getMessage(), instanceOf(MessageCallbackMessage.class));
}
/**
* Test the property 'errorCode'
*/
@Test
public void errorCodeTest() {
assertThat(model.getErrorCode(), instanceOf(Integer.class));
}
/**
* Test the property 'carrierName'
*/
@Test
public void carrierNameTest() {
assertThat(model.getCarrierName(), instanceOf(String.class));
}
}