Package org.citrusframework
Class TestSource
java.lang.Object
org.citrusframework.TestSource
- Direct Known Subclasses:
TestClass
- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionTestSource(Class<?> testClass) TestSource(String type, String name) TestSource(String type, String name, String filePath) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name.Gets the file resource for this test source.getSourceFile(TestContext context) Gets the file resource for this test source and uses given test context to resolve the file path with test variables.getType()The test source type.voidsetSourceFile(Resource sourceFile) sourceCode(String sourceCode) Add source code for this test source.
-
Constructor Details
-
TestSource
-
TestSource
-
TestSource
-
-
Method Details
-
getType
The test source type. Usually one of java, xml, groovy, yaml. -
getName
Gets the name. -
getFilePath
-
getSourceFile
Gets the file resource for this test source. -
getSourceFile
Gets the file resource for this test source and uses given test context to resolve the file path with test variables. -
setSourceFile
-
sourceCode
Add source code for this test source. Uses in memory resource to load the test source code.
-