Skip to content

Commit a51cd16

Browse files
SWI-2765
1 parent 07c88b4 commit a51cd16

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.bandwidth.sdk</groupId>
66
<artifactId>bandwidth-java-iris-sdk</artifactId>
7-
<version>2.0.0</version>
7+
<version>3.2.3</version>
88
<packaging>jar</packaging>
99
<name>bandwidth-java-iris-sdk</name>
1010
<description>Java SDK for use with the IRIS API.</description>
@@ -193,6 +193,7 @@
193193
</execution>
194194
</executions>
195195
<configuration>
196+
<skip>true</skip>
196197
<gpgArguments>
197198
<arg>--pinentry-mode</arg>
198199
<arg>loopback</arg>

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ public static DldaOrder create(IrisClient client, DldaOrder order) throws Except
4949
}
5050

5151
public static DldaOrder get(IrisClient client, String orderId) throws Exception {
52-
DldaOrderResponse orderResponse = client.get(client.buildAccountModelUri(
53-
new String[] { IrisPath.DLDA_ORDER_URI_PATH, orderId }), DldaOrderResponse.class);
54-
DldaOrder order = orderResponse.getOrder();
52+
DldaOrder order = client.get(client.buildAccountModelUri(
53+
new String[] { IrisPath.DLDA_ORDER_URI_PATH, orderId }), DldaOrder.class);
5554
order.setClient(client);
5655
return order;
5756
}

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

+4-23
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,15 @@
55
import com.bandwidth.iris.sdk.model.DldaOrderResponse;
66
import com.bandwidth.iris.sdk.utils.XmlUtils;
77
import org.junit.Test;
8-
98
import static com.github.tomakehurst.wiremock.client.WireMock.*;
109
import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
1110
import static org.junit.Assert.assertEquals;
1211

12+
13+
1314
public class DldaOrderTests extends BaseModelTests {
1415
@Test
1516
public void testCreate() throws Exception {
16-
String url = "/v1.0/accounts/accountId/dldas";
17-
stubFor(post(urlMatching(url)).willReturn(aResponse()
18-
.withStatus(200)
19-
.withHeader("Content-Type", "application/xml")
20-
.withHeader("Location", "https://someUrl.com/accounts/accountId/dldas/1234")));
21-
22-
String getUrl = "/v1.0/accounts/accountId/dldas/1234";
23-
stubFor(get(urlMatching(getUrl)).willReturn((aResponse()
24-
.withStatus(200)
25-
.withHeader("Content-Type", "application/xml")
26-
.withBody(IrisClientTestUtils.validDldaOrderResponseXml))));
27-
28-
DldaOrder order = XmlUtils.fromXml(IrisClientTestUtils.validDldaOrderRequestXml, DldaOrder.class);
29-
DldaOrder theOrder = DldaOrder.create(getDefaultClient(), order);
30-
assertEquals(theOrder.getDldaTnGroups().size(), 1);
31-
assertEquals(theOrder.getDldaTnGroups().get(0).getTelephoneNumberList().get(0), "5202217754");
32-
assertEquals(theOrder.getProcessingStatus(), "RECEIVED");
33-
34-
}
35-
36-
@Test
37-
public void testCreate2() throws Exception {
3817

3918
DldaTnGroup dldaTnGroup = new DldaTnGroup();
4019
dldaTnGroup.getTelephoneNumberList().add("9195551212");
@@ -43,4 +22,6 @@ public void testCreate2() throws Exception {
4322
dldaTnGroup.setSubscriberType("BUSINESS");
4423
assertEquals(dldaTnGroup.getSubscriberType(), "BUSINESS");
4524
}
25+
26+
4627
}

0 commit comments

Comments
 (0)