private void validateTestCondition(JobFlowTester flow, String id) throws IOException {
TestModerator moderator = new TestModerator(driverContext.getRepository(), driverContext);
for (DriverInputBase<?> port : flow.inputs) {
String label = String.format("Input(flow=%s, name=%s)", id, port.getName());
Class<?> type = port.getModelType();
DataModelSourceFactory source = port.getSource();
if (source != null) {
moderator.validate(type, label, source);
}
}
for (DriverOutputBase<?> port : flow.outputs) {
String label = String.format("Output(flow=%s, name=%s)", id, port.getName());
Class<?> type = port.getModelType();
DataModelSourceFactory source = port.getSource();
if (source != null) {
moderator.validate(type, label, source);
}
VerifierFactory verifier = port.getVerifier();
if (verifier != null) {