/** * Prepares the target importer's input using the specified source. * @param modelClass class of data model * @param description target importer * @param source test data * @throws IOException if failed to prepare the importer * @throws IllegalArgumentException if some parameters were {@code null} */ public void prepare( Class<?> modelClass, ImporterDescription description, DataModelSourceFactory source) throws IOException { if (modelClass == null) { throw new IllegalArgumentException("modelClass must not be null"); //$NON-NLS-1$ } if (description == null) { throw new IllegalArgumentException("description must not be null"); //$NON-NLS-1$ } if (source == null) { throw new IllegalArgumentException("source must not be null"); //$NON-NLS-1$ } DataModelDefinition<?> definition = repository.toDataModelDefinition(modelClass); prepare(definition, description, source); }
/** * Prepares the target exporter's output using the specified source. * @param modelClass class of data model * @param description target importer * @param source test data * @throws IOException if failed to prepare the importer * @throws IllegalArgumentException if some parameters were {@code null} */ public void prepare( Class<?> modelClass, ExporterDescription description, DataModelSourceFactory source) throws IOException { if (modelClass == null) { throw new IllegalArgumentException("modelClass must not be null"); //$NON-NLS-1$ } if (description == null) { throw new IllegalArgumentException("description must not be null"); //$NON-NLS-1$ } if (source == null) { throw new IllegalArgumentException("source must not be null"); //$NON-NLS-1$ } DataModelDefinition<?> definition = repository.toDataModelDefinition(modelClass); prepare(definition, description, source); }
private <T> void prepare( DataModelDefinition<T> definition, ImporterDescription description, DataModelSourceFactory source) throws IOException { assert definition != null; assert description != null; assert source != null; ModelOutput< T> output = getDriver(description).createOutput(definition, description, context); prepare(definition, output, source); }
private <T> void prepare( DataModelDefinition<T> definition, ExporterDescription desctipion, DataModelSourceFactory source) throws IOException { assert definition != null; assert desctipion != null; assert source != null; ModelOutput<T> output = getDriver(desctipion).createOutput(definition, desctipion, context); prepare(definition, output, source); }
/** * Prepares external resources. * @param resources the external resource map * @throws IOException if failed to prepare external resources * @throws IllegalArgumentException if some parameters were {@code null} * @since 0.7.3 */ public void prepareExternalResources( Map<? extends ImporterDescription, ? extends DataModelSourceFactory> resources) throws IOException { if (resources == null) { throw new IllegalArgumentException("resources must not be null"); //$NON-NLS-1$ } if (driverContext.isSkipPrepareInput() == false) { for (Map.Entry<? extends ImporterDescription, ? extends DataModelSourceFactory> entry : resources.entrySet()) { ImporterDescription description = entry.getKey(); DataModelSourceFactory source = entry.getValue(); LOG.debug("preparing external resource: {} ({})", description, source); //$NON-NLS-1$ moderator.prepare(description.getModelType(), description, source); } } else { LOG.info(Messages.getString("JobflowExecutor.infoSkipPrepareExtraResource")); //$NON-NLS-1$ } }
/** * Prepares jobflow input. * @param description the importer description * @param source the data model source * @throws IOException if failed to prepare the input */ public void prepare(ImporterDescription description, DataModelSourceFactory source) throws IOException { TestModerator moderator = new TestModerator(getTestTools(), this); moderator.prepare(description.getModelType(), description, source); }
jobflow.getId())); moderator.prepare(port.getDataType(), port.getDescription(), source);
jobflow.getId())); moderator.prepare(port.getDataType(), port.getDescription(), source);