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 Path
convertContent(URI contentUri, Path generationPath, IBindingContext context)
protected void
deleteCollectionOnExit(Path path)
protected abstract Function<Path,? extends IContentValidator>
getContentValidatorSupplier()
protected abstract Path
getGenerationPath()
protected abstract BiFunction<IModule,Writer,Void>
getGeneratorSupplier()
protected abstract Format
getRequiredContentFormat()
protected abstract Supplier<? extends IContentValidator>
getSchemaValidatorSupplier()
protected abstract URI
getTestSuiteURI()
protected OpenOption[]
getWriteOpenOptions()
protected void
produceSchema(IModule module, Path schemaPath)
protected void
produceSchema(IModule module, Path schemaPath, BiFunction<IModule,Writer,Void> schemaProducer)
protected Stream<org.junit.jupiter.api.DynamicNode>
testFactory()
protected static boolean
validate(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
-
-