public class JavaTestGenerator extends Object implements SingleTestGenerator
properties
SingleTestGenerator.GeneratedClassData
Constructor and Description |
---|
JavaTestGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
buildClass(ContractVerifierConfigProperties properties,
Collection<ContractMetadata> listOfFiles,
String includedDirectoryRelativePath,
SingleTestGenerator.GeneratedClassData generatedClassData)
Creates contents of a single test class in which all test scenarios from the
contract metadata should be placed.
|
String |
buildClass(ContractVerifierConfigProperties properties,
Collection<ContractMetadata> listOfFiles,
String className,
String classPackage,
String includedDirectoryRelativePath)
Creates contents of a single test class in which all test scenarios from the
contract metadata should be placed.
|
String |
fileExtension(ContractVerifierConfigProperties properties)
Deprecated.
|
public String buildClass(ContractVerifierConfigProperties properties, Collection<ContractMetadata> listOfFiles, String className, String classPackage, String includedDirectoryRelativePath)
SingleTestGenerator
buildClass
in interface SingleTestGenerator
properties
- - properties passed to the pluginlistOfFiles
- - list of parsed contracts with additional metadataclassName
- - the name of the generated test classclassPackage
- - the name of the package in which the test class should be
storedincludedDirectoryRelativePath
- - relative path to the included directorypublic String buildClass(ContractVerifierConfigProperties properties, Collection<ContractMetadata> listOfFiles, String includedDirectoryRelativePath, SingleTestGenerator.GeneratedClassData generatedClassData)
SingleTestGenerator
buildClass
in interface SingleTestGenerator
properties
- - properties passed to the pluginlistOfFiles
- - list of parsed contracts with additional metadataincludedDirectoryRelativePath
- - relative path to the included directorygeneratedClassData
- - information about the generated class@Deprecated public String fileExtension(ContractVerifierConfigProperties properties)
SingleTestGenerator
.java
or .php
fileExtension
in interface SingleTestGenerator
properties
- - properties passed to the pluginCopyright © 2016–2019 Spring. All rights reserved.