Skip to content

Commit 346c255

Browse files
committed
unit tests
1 parent 7c06e66 commit 346c255

File tree

3 files changed

+80
-1
lines changed

3 files changed

+80
-1
lines changed

src/test/java/com/bandwidth/sdk/unit/models/RbmActionOpenUrlTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
import com.bandwidth.sdk.model.RbmActionOpenUrl;
1919
import com.bandwidth.sdk.model.RbmActionTypeEnum;
20+
import com.bandwidth.sdk.model.RbmOpenUrlEnum;
21+
import com.bandwidth.sdk.model.RbmVebViewEnum;
2022

2123
import static org.hamcrest.MatcherAssert.assertThat;
2224

@@ -32,7 +34,9 @@ public class RbmActionOpenUrlTest {
3234
.type(RbmActionTypeEnum.OPEN_URL)
3335
.text("text")
3436
.postbackData(new byte[]{1, 2, 3})
35-
.url(URI.create("https://bandwidth.com"));
37+
.url(URI.create("https://bandwidth.com"))
38+
.application(RbmOpenUrlEnum.BROWSER)
39+
.webviewViewMode(RbmVebViewEnum.FULL);
3640

3741
/**
3842
* Model tests for RbmActionOpenUrl
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 com.bandwidth.sdk.model.RbmOpenUrlEnum;
19+
20+
import static org.hamcrest.CoreMatchers.equalTo;
21+
import static org.hamcrest.MatcherAssert.assertThat;
22+
23+
24+
/**
25+
* Model tests for RbmOpenUrlEnum
26+
*/
27+
public class RbmOpenUrlEnumTest {
28+
/**
29+
* Model tests for RbmOpenUrlEnum
30+
*/
31+
@Test
32+
public void testRbmOpenUrlEnum() {
33+
assertThat(RbmOpenUrlEnum.BROWSER.toString(), equalTo("BROWSER"));
34+
assertThat(RbmOpenUrlEnum.WEBVIEW.toString(), equalTo("WEBVIEW"));
35+
}
36+
37+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 com.bandwidth.sdk.model.RbmVebViewEnum;
19+
20+
import static org.hamcrest.CoreMatchers.equalTo;
21+
import static org.hamcrest.MatcherAssert.assertThat;
22+
23+
24+
/**
25+
* Model tests for RbmVebViewEnum
26+
*/
27+
public class RbmVebViewEnumTest {
28+
/**
29+
* Model tests for RbmVebViewEnum
30+
*/
31+
@Test
32+
public void testRbmVebViewEnum() {
33+
assertThat(RbmVebViewEnum.FULL.toString(), equalTo("FULL"));
34+
assertThat(RbmVebViewEnum.HALF.toString(), equalTo("HALF"));
35+
assertThat(RbmVebViewEnum.TALL.toString(), equalTo("TALL"));
36+
}
37+
38+
}

0 commit comments

Comments
 (0)