From 5b8a968b463db7a988615a0cce58345020779bd7 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 23 May 2023 11:09:32 -0400 Subject: [PATCH] Fixed typo and added test --- .../com/bandwidth/iris/sdk/model/DldaTnGroup.java | 2 +- .../java/com/bandwidth/iris/sdk/DldaOrderTests.java | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/bandwidth/iris/sdk/model/DldaTnGroup.java b/src/main/java/com/bandwidth/iris/sdk/model/DldaTnGroup.java index f48e441..3846b2f 100644 --- a/src/main/java/com/bandwidth/iris/sdk/model/DldaTnGroup.java +++ b/src/main/java/com/bandwidth/iris/sdk/model/DldaTnGroup.java @@ -77,7 +77,7 @@ public void setAddress(Address address) { this.address = address; } - public String getSubcsriberType() { + public String getSubscriberType() { return subscriberType; } diff --git a/src/test/java/com/bandwidth/iris/sdk/DldaOrderTests.java b/src/test/java/com/bandwidth/iris/sdk/DldaOrderTests.java index 994eca8..aab26cc 100644 --- a/src/test/java/com/bandwidth/iris/sdk/DldaOrderTests.java +++ b/src/test/java/com/bandwidth/iris/sdk/DldaOrderTests.java @@ -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; @@ -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"); + } }