public interface JsonDataGenerator
| Modifier and Type | Method and Description |
|---|---|
void |
generateTestDataJson(File file,
File outputFile)
Generate json test data
|
void |
generateTestDataJson(File file,
OutputStream outputStream)
Generate json test data
|
void |
generateTestDataJson(InputStream inputStream,
OutputStream outputStream)
Generate json test data
|
void |
generateTestDataJson(String text,
OutputStream outputStream)
Generate json test data
|
void |
generateTestDataJson(URL classPathResource,
OutputStream outputStream)
Generate json test data
|
void generateTestDataJson(String text, OutputStream outputStream) throws JsonDataGeneratorException
text - source json textoutputStream - stream to write the test data to.
You are responsible for closing your own OutputStream.JsonDataGeneratorException - default exception thrown when using the data generatorvoid generateTestDataJson(URL classPathResource, OutputStream outputStream) throws JsonDataGeneratorException
classPathResource - url of source json text on classpathoutputStream - stream to write the test data to.
You are responsible for closing your own OutputStream.JsonDataGeneratorException - default exception thrown when using the data generatorvoid generateTestDataJson(File file, OutputStream outputStream) throws JsonDataGeneratorException
file - file of source json textoutputStream - stream to write the test data to.
You are responsible for closing your own OutputStream.JsonDataGeneratorException - default exception thrown when using the data generatorvoid generateTestDataJson(File file, File outputFile) throws JsonDataGeneratorException
file - file of source json textoutputFile - file to write the test data to.JsonDataGeneratorException - default exception thrown when using the data generatorvoid generateTestDataJson(InputStream inputStream, OutputStream outputStream) throws JsonDataGeneratorException
inputStream - inputstream source json text. You are responsible for closing
your own InputStream.outputStream - stream to write the test data to. You are responsible for
closing your own OutputStream.JsonDataGeneratorException - default exception thrown when using the data generatorCopyright © 2022. All rights reserved.