Skip to content

Commit 3b48d86

Browse files
Merge pull request #63 from Bandwidth/SWI-2652
SWI-2652 Fixed typo and added test
2 parents caa095f + 5b8a968 commit 3b48d86

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/main/java/com/bandwidth/iris/sdk/model/DldaTnGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void setAddress(Address address) {
7777
this.address = address;
7878
}
7979

80-
public String getSubcsriberType() {
80+
public String getSubscriberType() {
8181
return subscriberType;
8282
}
8383

src/test/java/com/bandwidth/iris/sdk/DldaOrderTests.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.bandwidth.iris.sdk;
22

33
import com.bandwidth.iris.sdk.model.DldaOrder;
4+
import com.bandwidth.iris.sdk.model.DldaTnGroup;
45
import com.bandwidth.iris.sdk.model.DldaOrderResponse;
56
import com.bandwidth.iris.sdk.utils.XmlUtils;
67
import org.junit.Test;
@@ -29,5 +30,17 @@ public void testCreate() throws Exception {
2930
assertEquals(theOrder.getDldaTnGroups().size(), 1);
3031
assertEquals(theOrder.getDldaTnGroups().get(0).getTelephoneNumberList().get(0), "5202217754");
3132
assertEquals(theOrder.getProcessingStatus(), "RECEIVED");
33+
3234
}
35+
36+
@Test
37+
public void testCreate2() throws Exception {
38+
39+
DldaTnGroup dldaTnGroup = new DldaTnGroup();
40+
dldaTnGroup.getTelephoneNumberList().add("9195551212");
41+
dldaTnGroup.setAccountType("RESIDENTIAL");
42+
dldaTnGroup.setListingType("LISTED");
43+
dldaTnGroup.setSubscriberType("BUSINESS");
44+
assertEquals(dldaTnGroup.getSubscriberType(), "BUSINESS");
45+
}
3346
}

0 commit comments

Comments
 (0)