Functions -
test
assertEquals |
Asserts whether the given values are equal.
|
assertFail |
Assert failure is triggered based on user discretion.
|
assertFalse |
Asserts whether the given condition is false.
|
assertNotEquals |
Asserts whether the given values are not equal.
|
assertTrue |
Asserts whether the given condition is true.
|
createBallerinaError |
Creates an AssertError with custom message and category.
|
startServiceSkeleton |
Start a service skeleton from a given OpenApi definition in the given ballerina module.
|
startServices |
Starts all the services defined in the module specified in the 'moduleName' argument.
|
stopServiceSkeleton |
Stop a service skeleton and cleanup created directories of a given ballerina module.
|
stopServices |
Stops all the services defined in the module specified in the 'moduleName' argument.
|
Parameters
- actual any | error
-
Actual value
- expected any | error
-
Expected value
- msg string (default Assertion Failed!)
-
Assertion error message
Parameters
- msg string (default Test Failed!)
-
Assertion error message
Parameters
- condition boolean
-
Boolean condition to evaluate
- msg string (default Assertion Failed!)
-
Assertion error message
Parameters
- actual any | error
-
Actual value
- expected any | error
-
Expected value
- msg string (default Assertion Failed!)
-
Assertion error message
Parameters
- condition boolean
-
Boolean condition to evaluate
- msg string (default Assertion Failed!)
-
Assertion error message
Parameters
- errorMessage string
-
Custom message for the ballerina error
- category string
-
error category
-
Return Type
(error) an AssertError with custom message and category
Parameters
- moduleName string
-
Name of the module
- openApiFilePath string
-
Path to the OpenApi definition
-
Return Type
(boolean) true
if the service skeleton was started successfully,false
otherwise
Parameters
- moduleName string
-
Name of the module
-
Return Type
(boolean) true
if the services were started successfully,false
otherwise
Parameters
- moduleName string
-
Name of the module