Class AbstractTestSuite
- java.lang.Object
-
- gov.nist.secauto.metaschema.model.testing.AbstractTestSuite
-
public abstract class AbstractTestSuite extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractTestSuite()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected PathconvertContent(URI contentUri, Path generationPath, IBindingContext context)protected voiddeleteCollectionOnExit(Path path)protected abstract Function<Path,? extends IContentValidator>getContentValidatorSupplier()protected abstract PathgetGenerationPath()protected abstract BiFunction<IModule,Writer,Void>getGeneratorSupplier()protected abstract FormatgetRequiredContentFormat()protected abstract Supplier<? extends IContentValidator>getSchemaValidatorSupplier()protected abstract URIgetTestSuiteURI()protected OpenOption[]getWriteOpenOptions()protected voidproduceSchema(IModule module, Path schemaPath)protected voidproduceSchema(IModule module, Path schemaPath, BiFunction<IModule,Writer,Void> schemaProducer)protected Stream<org.junit.jupiter.api.DynamicNode>testFactory()protected static booleanvalidate(IContentValidator validator, Path target)
-
-
-
Constructor Detail
-
AbstractTestSuite
public AbstractTestSuite()
-
-
Method Detail
-
getRequiredContentFormat
@NonNull protected abstract Format getRequiredContentFormat()
-
getTestSuiteURI
@NonNull protected abstract URI getTestSuiteURI()
-
getGenerationPath
@NonNull protected abstract Path getGenerationPath()
-
getGeneratorSupplier
@NonNull protected abstract BiFunction<IModule,Writer,Void> getGeneratorSupplier()
-
getSchemaValidatorSupplier
@Nullable protected abstract Supplier<? extends IContentValidator> getSchemaValidatorSupplier()
-
getContentValidatorSupplier
@NonNull protected abstract Function<Path,? extends IContentValidator> getContentValidatorSupplier()
-
testFactory
protected Stream<org.junit.jupiter.api.DynamicNode> testFactory()
-
deleteCollectionOnExit
protected void deleteCollectionOnExit(Path path)
-
produceSchema
protected void produceSchema(@NonNull IModule module, @NonNull Path schemaPath) throws IOException
- Throws:
IOException
-
produceSchema
protected void produceSchema(@NonNull IModule module, @NonNull Path schemaPath, @NonNull BiFunction<IModule,Writer,Void> schemaProducer) throws IOException
- Throws:
IOException
-
getWriteOpenOptions
protected OpenOption[] getWriteOpenOptions()
-
convertContent
protected Path convertContent(URI contentUri, @NonNull Path generationPath, @NonNull IBindingContext context) throws IOException
- Throws:
IOException
-
validate
protected static boolean validate(@NonNull IContentValidator validator, @NonNull Path target) throws IOException
- Throws:
IOException
-
-