Skip to content

Commit

Permalink
Merge pull request #63 from Bandwidth/SWI-2652
Browse files Browse the repository at this point in the history
SWI-2652 Fixed typo and added test
  • Loading branch information
brianluisgomez committed May 23, 2023
2 parents caa095f + 5b8a968 commit 3b48d86
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void setAddress(Address address) {
this.address = address;
}

public String getSubcsriberType() {
public String getSubscriberType() {
return subscriberType;
}

Expand Down
13 changes: 13 additions & 0 deletions src/test/java/com/bandwidth/iris/sdk/DldaOrderTests.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.bandwidth.iris.sdk;

import com.bandwidth.iris.sdk.model.DldaOrder;
import com.bandwidth.iris.sdk.model.DldaTnGroup;
import com.bandwidth.iris.sdk.model.DldaOrderResponse;
import com.bandwidth.iris.sdk.utils.XmlUtils;
import org.junit.Test;
Expand Down Expand Up @@ -29,5 +30,17 @@ public void testCreate() throws Exception {
assertEquals(theOrder.getDldaTnGroups().size(), 1);
assertEquals(theOrder.getDldaTnGroups().get(0).getTelephoneNumberList().get(0), "5202217754");
assertEquals(theOrder.getProcessingStatus(), "RECEIVED");

}

@Test
public void testCreate2() throws Exception {

DldaTnGroup dldaTnGroup = new DldaTnGroup();
dldaTnGroup.getTelephoneNumberList().add("9195551212");
dldaTnGroup.setAccountType("RESIDENTIAL");
dldaTnGroup.setListingType("LISTED");
dldaTnGroup.setSubscriberType("BUSINESS");
assertEquals(dldaTnGroup.getSubscriberType(), "BUSINESS");
}
}

0 comments on commit 3b48d86

Please sign in to comment.