Search in sources :

Example 6 with GetRelatedFilesRequestImpl

use of org.codice.alliance.nsili.endpoint.requests.GetRelatedFilesRequestImpl in project alliance by codice.

the class GetRelatedFilesRequestImplTest method testNoHostLocation.

@Test
public void testNoHostLocation() throws Exception {
    FileLocation fileLocation = getTestFileLocation();
    fileLocation.host_name = "";
    NameListHolder locations = new NameListHolder();
    GetRelatedFilesRequestImpl noPortRequest = new GetRelatedFilesRequestImpl(getTestMetacards(), fileLocation, "THUMBNAIL", null);
    noPortRequest.setHttpClient(mockHttpClient);
    State state = noPortRequest.complete(locations);
    assertValidStateNoLocs(state, locations);
}
Also used : GetRelatedFilesRequestImpl(org.codice.alliance.nsili.endpoint.requests.GetRelatedFilesRequestImpl) State(org.codice.alliance.nsili.common.UCO.State) FileLocation(org.codice.alliance.nsili.common.UCO.FileLocation) NameListHolder(org.codice.alliance.nsili.common.UCO.NameListHolder) Test(org.junit.Test)

Aggregations

GetRelatedFilesRequestImpl (org.codice.alliance.nsili.endpoint.requests.GetRelatedFilesRequestImpl)6 NameListHolder (org.codice.alliance.nsili.common.UCO.NameListHolder)4 State (org.codice.alliance.nsili.common.UCO.State)4 Test (org.junit.Test)4 Metacard (ddf.catalog.data.Metacard)2 FileLocation (org.codice.alliance.nsili.common.UCO.FileLocation)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 ArrayList (java.util.ArrayList)1 GetRelatedFilesRequest (org.codice.alliance.nsili.common.GIAS.GetRelatedFilesRequest)1 Product (org.codice.alliance.nsili.common.UID.Product)1 Before (org.junit.Before)1 ObjectAlreadyActive (org.omg.PortableServer.POAPackage.ObjectAlreadyActive)1 ServantAlreadyActive (org.omg.PortableServer.POAPackage.ServantAlreadyActive)1 WrongAdapter (org.omg.PortableServer.POAPackage.WrongAdapter)1 WrongPolicy (org.omg.PortableServer.POAPackage.WrongPolicy)1