use of org.apache.nifi.web.api.dto.RemoteProcessGroupDTO in project nifi-minifi by apache.
the class RemoteProcessGroupSchemaTest method setup.
@Before
public void setup() {
remoteInputPortSchemaTest.setup();
dto = new RemoteProcessGroupDTO();
dto.setId(testId);
dto.setName(testName);
dto.setTargetUri(testUrl);
RemoteProcessGroupContentsDTO contents = new RemoteProcessGroupContentsDTO();
contents.setInputPorts(Arrays.asList(remoteInputPortSchemaTest.dto).stream().collect(Collectors.toSet()));
dto.setContents(contents);
dto.setComments(testComment);
dto.setCommunicationsTimeout(testTimeout);
dto.setYieldDuration(testYieldPeriod);
dto.setTransportProtocol(transportProtocol);
map = new HashMap<>();
map.put(CommonPropertyKeys.ID_KEY, testId);
map.put(CommonPropertyKeys.NAME_KEY, testName);
map.put(RemoteProcessGroupSchema.URL_KEY, testUrl);
map.put(CommonPropertyKeys.INPUT_PORTS_KEY, new ArrayList<>(Arrays.asList(remoteInputPortSchemaTest.map)));
map.put(CommonPropertyKeys.COMMENT_KEY, testComment);
map.put(RemoteProcessGroupSchema.TIMEOUT_KEY, testTimeout);
map.put(CommonPropertyKeys.YIELD_PERIOD_KEY, testYieldPeriod);
map.put(RemoteProcessGroupSchema.TRANSPORT_PROTOCOL_KEY, transportProtocol);
}
Aggregations