Search in sources :

Example 1 with RequestDescription

use of org.codice.alliance.nsili.common.UCO.RequestDescription in project alliance by codice.

the class SubmitStandingQueryRequestImplTest method testSetUserInfo.

@Test
public void testSetUserInfo() throws InvalidInputParameter, SystemFault, ProcessingFault {
    String testUser = "test";
    standingQueryRequest.set_user_info(testUser);
    RequestDescription requestDescription = standingQueryRequest.get_request_description();
    assertThat(testUser, is(requestDescription.user_info));
}
Also used : RequestDescription(org.codice.alliance.nsili.common.UCO.RequestDescription) CoreMatchers.containsString(org.hamcrest.CoreMatchers.containsString) Test(org.junit.Test)

Example 2 with RequestDescription

use of org.codice.alliance.nsili.common.UCO.RequestDescription in project alliance by codice.

the class OrderRequestImplTest method getRequestDescription.

@Test
public void getRequestDescription() throws SystemFault, ProcessingFault {
    OrderContents order = getUncompressedTestOrder();
    OrderRequestImpl orderRequest = new OrderRequestImpl(order, PROTOCOL, PORT, accessManager, mockCatalogFramework, emailConfiguration);
    RequestDescription requestDescription = orderRequest.get_request_description();
    assertThat(requestDescription, notNullValue());
}
Also used : OrderContents(org.codice.alliance.nsili.common.GIAS.OrderContents) RequestDescription(org.codice.alliance.nsili.common.UCO.RequestDescription) Test(org.junit.Test)

Aggregations

RequestDescription (org.codice.alliance.nsili.common.UCO.RequestDescription)2 Test (org.junit.Test)2 OrderContents (org.codice.alliance.nsili.common.GIAS.OrderContents)1 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1