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);
}
Aggregations