TestModerator instead@Deprecated public class TestDataPreparator extends Object
| Constructor and Description |
|---|
TestDataPreparator(ClassLoader serviceClassLoader)
Deprecated.
Creates a new instance which uses registerd services.
|
TestDataPreparator(DataModelAdapter adapter,
DataModelSourceProvider sources,
ImporterPreparator<ImporterDescription> importers,
ExporterRetriever<ExporterDescription> exporters)
Deprecated.
Creates a new instance which uses the specified services.
|
TestDataPreparator(TestContext context,
ClassLoader serviceClassLoader)
Deprecated.
Creates a new instance which uses registerd services.
|
TestDataPreparator(TestContext context,
DataModelAdapter adapter,
DataModelSourceProvider sources,
ImporterPreparator<ImporterDescription> importers,
ExporterRetriever<ExporterDescription> exporters)
Deprecated.
Creates a new instance which uses the specified services.
|
| Modifier and Type | Method and Description |
|---|---|
void |
prepare(Class<?> type,
ExporterDescription description,
URI source)
Deprecated.
Prepares the target exporter's output using the specified source.
|
void |
prepare(Class<?> type,
ImporterDescription description,
URI source)
Deprecated.
Prepares the target importer's input using the specified source.
|
<T> ModelOutput<T> |
prepare(Class<T> type,
ExporterDescription description)
Deprecated.
Opens the target exporter's output to prepare it.
|
<T> ModelOutput<T> |
prepare(Class<T> type,
ImporterDescription description)
Deprecated.
Opens the target importer's input to prepare it.
|
void |
truncate(ExporterDescription description)
Deprecated.
Truncates the target exporter's output.
|
void |
truncate(ImporterDescription description)
Deprecated.
Truncates the target importer's input.
|
public TestDataPreparator(ClassLoader serviceClassLoader)
serviceClassLoader - class loader to load servicesIllegalArgumentException - if some parameters were nullpublic TestDataPreparator(DataModelAdapter adapter, DataModelSourceProvider sources, ImporterPreparator<ImporterDescription> importers, ExporterRetriever<ExporterDescription> exporters)
adapter - data model adaptersources - test data providerimporters - test data deployer for import sourceexporters - test data deployer for export targetIllegalArgumentException - if some parameters were nullpublic TestDataPreparator(TestContext context, ClassLoader serviceClassLoader)
context - the current contextserviceClassLoader - class loader to load servicesIllegalArgumentException - if some parameters were nullpublic TestDataPreparator(TestContext context, DataModelAdapter adapter, DataModelSourceProvider sources, ImporterPreparator<ImporterDescription> importers, ExporterRetriever<ExporterDescription> exporters)
context - the current contextadapter - data model adaptersources - test data providerimporters - test data deployer for import sourceexporters - test data deployer for export targetIllegalArgumentException - if some parameters were nullpublic <T> ModelOutput<T> prepare(Class<T> type, ImporterDescription description) throws IOException
T - type of data modeltype - class of data modeldescription - target importerIOException - if failed to open the importerIllegalArgumentException - if some parameters were nullpublic <T> ModelOutput<T> prepare(Class<T> type, ExporterDescription description) throws IOException
T - type of data modeltype - class of data modeldescription - target exporterIOException - if failed to open the importerIllegalArgumentException - if some parameters were nullpublic void prepare(Class<?> type, ImporterDescription description, URI source) throws IOException
type - class of data modeldescription - target importersource - test dataIOException - if failed to prepare the importerIllegalArgumentException - if some parameters were nullpublic void prepare(Class<?> type, ExporterDescription description, URI source) throws IOException
type - class of data modeldescription - target importersource - test dataIOException - if failed to prepare the importerIllegalArgumentException - if some parameters were nullpublic void truncate(ImporterDescription description) throws IOException
description - target importerIOException - if failed to prepare the importerIllegalArgumentException - if some parameters were nullpublic void truncate(ExporterDescription description) throws IOException
description - target importerIOException - if failed to prepare the importerIllegalArgumentException - if some parameters were nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.