TestModerator instead@Deprecated public class TestResultInspector extends Object
| Constructor and Description |
|---|
TestResultInspector(ClassLoader serviceClassLoader)
Deprecated.
Creates a new instance which uses registerd services.
|
TestResultInspector(DataModelAdapter adapter,
DataModelSourceProvider sources,
VerifyRuleProvider rules,
ExporterRetriever<ExporterDescription> retrievers)
Deprecated.
Creates a new instance which uses the specified services.
|
TestResultInspector(TestContext context,
ClassLoader serviceClassLoader)
Deprecated.
Creates a new instance which uses registerd services.
|
TestResultInspector(TestContext context,
DataModelAdapter adapter,
DataModelSourceProvider sources,
VerifyRuleProvider rules,
ExporterRetriever<ExporterDescription> retrievers)
Deprecated.
Creates a new instance which uses the specified services.
|
| Modifier and Type | Method and Description |
|---|---|
List<Difference> |
inspect(Class<?> modelClass,
ExporterDescription description,
URI expected,
VerifyRule rule)
Deprecated.
Inspects the target exporter's output using specified expected data and rule.
|
List<Difference> |
inspect(Class<?> modelClass,
ExporterDescription description,
VerifyContext verifyContext,
URI expected,
URI rule)
Deprecated.
Inspects the target exporter's output using specified expected data and rule.
|
VerifyRuleBuilder |
rule(Class<?> modelClass)
Deprecated.
Creates a
VerifyRuleBuilder for the target model class. |
<T> VerifyRule |
rule(Class<? extends T> modelClass,
ModelVerifier<T> verifier)
Deprecated.
Converts
ModelVerifier into VerifyRule. |
public TestResultInspector(ClassLoader serviceClassLoader)
serviceClassLoader - class loader to load servicesIllegalArgumentException - if some parameters were nullpublic TestResultInspector(DataModelAdapter adapter, DataModelSourceProvider sources, VerifyRuleProvider rules, ExporterRetriever<ExporterDescription> retrievers)
adapter - data model driversources - test data providerrules - verification rule providerretrievers - test result retrieversIllegalArgumentException - if some parameters were nullpublic TestResultInspector(TestContext context, ClassLoader serviceClassLoader)
context - the current contextserviceClassLoader - class loader to load servicesIllegalArgumentException - if some parameters were nullpublic TestResultInspector(TestContext context, DataModelAdapter adapter, DataModelSourceProvider sources, VerifyRuleProvider rules, ExporterRetriever<ExporterDescription> retrievers)
context - the current contextadapter - data model driversources - test data providerrules - verification rule providerretrievers - test result retrieversIllegalArgumentException - if some parameters were nullpublic List<Difference> inspect(Class<?> modelClass, ExporterDescription description, VerifyContext verifyContext, URI expected, URI rule) throws IOException
modelClass - class of data modeldescription - target exporterverifyContext - current verification contextexpected - the expected datarule - the verification rule between expected and actual resultIOException - if failed to inspect the resultIllegalArgumentException - if some parameters were nullpublic VerifyRuleBuilder rule(Class<?> modelClass) throws IOException
VerifyRuleBuilder for the target model class.modelClass - target model classVerifyRuleBuilderIOException - if failed to createIllegalArgumentException - if some parameters were nullpublic <T> VerifyRule rule(Class<? extends T> modelClass, ModelVerifier<T> verifier) throws IOException
ModelVerifier into VerifyRule.T - type of modelmodelClass - class of modelverifier - target verifierIOException - if failed to convertIllegalArgumentException - if some parameters were nullpublic List<Difference> inspect(Class<?> modelClass, ExporterDescription description, URI expected, VerifyRule rule) throws IOException
modelClass - class of data modeldescription - target exporterexpected - the expected datarule - the verification rule between expected and actual resultIOException - if failed to inspect the resultIllegalArgumentException - if some parameters were nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.