Package | Description |
---|---|
org.ballerinalang.test.context |
Modifier and Type | Method and Description |
---|---|
static void |
Utils.checkPortAvailability(int port)
Check whether given port is in use or not.
|
static void |
Utils.copyFile(Path source,
Path target)
Copy a file.
|
static void |
Utils.extractFile(String sourceFilePath,
String extractedDir)
Unzip a zip file into a given location.
|
void |
BServerInstance.killServer()
Kill the server instance which is started by start method.
|
void |
BServer.killServer()
Forcefully kills the server.
|
void |
BMain.runMain(String balFile)
Run ballerina main function provided .bal file.
|
void |
BMainInstance.runMain(String balFile) |
void |
BMain.runMain(String balFile,
LogLeecher[] leechers)
Run ballerina main function provided .bal file.
|
void |
BMainInstance.runMain(String balFile,
LogLeecher[] leechers) |
void |
BMain.runMain(String sourceRoot,
String packagePath)
Run ballerina main function provided bal package.
|
void |
BMainInstance.runMain(String sourceRoot,
String packagePath) |
void |
BMainInstance.runMain(String command,
String[] args,
Map<String,String> envProperties,
String[] clientArgs,
LogLeecher[] leechers,
String commandDir)
Executing the sh or bat file to start the server.
|
void |
BMain.runMain(String balFile,
String[] flags,
String[] args)
Run ballerina main function provided .bal file.
|
void |
BMainInstance.runMain(String balFile,
String[] flags,
String[] args) |
void |
BMain.runMain(String balFile,
String[] flags,
String[] args,
LogLeecher[] leechers)
Run ballerina main function provided .bal file.
|
void |
BMainInstance.runMain(String balFile,
String[] flags,
String[] args,
LogLeecher[] leechers) |
void |
BMain.runMain(String balFile,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs)
Run ballerina main function provided .bal file.
|
void |
BMainInstance.runMain(String balFile,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs) |
void |
BMain.runMain(String balFile,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs,
LogLeecher[] leechers)
Run ballerina main function provided .bal file.
|
void |
BMainInstance.runMain(String balFile,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs,
LogLeecher[] leechers) |
void |
BMain.runMain(String sourceRoot,
String packagePath,
LogLeecher[] leechers)
Run ballerina main function provided bal package.
|
void |
BMainInstance.runMain(String sourceRoot,
String packagePath,
LogLeecher[] leechers) |
void |
BMain.runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args)
Run ballerina main function provided bal package.
|
void |
BMainInstance.runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args) |
void |
BMain.runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args,
LogLeecher[] leechers)
Run ballerina main function provided bal package.
|
void |
BMainInstance.runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args,
LogLeecher[] leechers) |
void |
BMain.runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs)
Run ballerina main function provided bal package.
|
void |
BMainInstance.runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs) |
void |
BMain.runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs,
LogLeecher[] leechers)
Run ballerina main function provided bal package.
|
void |
BMainInstance.runMain(String sourceRoot,
String packagePath,
String[] flags,
String[] args,
Map<String,String> envProperties,
String[] clientArgs,
LogLeecher[] leechers) |
String |
BMainInstance.runMainAndReadStdOut(String command,
String[] args,
String commandDir)
Executing the sh or bat file to start the server and returns the logs printed to stdout.
|
void |
BServerInstance.shutdownServer()
Stop the server instance which is started by start method.
|
void |
BServer.shutdownServer()
Stops the server started by startServer method.
|
void |
BServerInstance.startServer(String balFile) |
void |
BServer.startServer(String balFile)
Start ballerina server passing provided .bal files.
|
void |
BServerInstance.startServer(String balFile,
int[] requiredPorts) |
void |
BServer.startServer(String balFile,
int[] requiredPorts)
Start ballerina server passing provided .bal files.
|
void |
BServerInstance.startServer(String sourceRoot,
String packagePath) |
void |
BServer.startServer(String sourceRoot,
String packagePath)
Start ballerina server passing provided bal package.
|
void |
BServerInstance.startServer(String balFile,
String[] args,
int[] requiredPorts) |
void |
BServer.startServer(String balFile,
String[] args,
int[] requiredPorts)
Start ballerina server passing provided .bal files.
|
void |
BServerInstance.startServer(String balFile,
String[] args,
Map<String,String> envProperties,
int[] requiredPorts) |
void |
BServer.startServer(String balFile,
String[] args,
Map<String,String> envProperties,
int[] requiredPorts)
Start ballerina server passing provided .bal files.
|
void |
BServerInstance.startServer(String sourceRoot,
String packagePath,
int[] requiredPorts) |
void |
BServer.startServer(String sourceRoot,
String packagePath,
int[] requiredPorts)
Start ballerina server passing provided bal package.
|
void |
BServerInstance.startServer(String sourceRoot,
String packagePath,
String[] args,
int[] requiredPorts) |
void |
BServer.startServer(String sourceRoot,
String packagePath,
String[] args,
int[] requiredPorts)
Start ballerina server passing provided bal package.
|
void |
BServerInstance.startServer(String sourceRoot,
String packagePath,
String[] args,
Map<String,String> envProperties,
int[] requiredPorts) |
void |
BServer.startServer(String sourceRoot,
String packagePath,
String[] args,
Map<String,String> envProperties,
int[] requiredPorts)
Start ballerina server passing provided bal package.
|
void |
LogLeecher.waitForText(long timeout)
Wait until a specific log is found.
|
Constructor and Description |
---|
BalServer()
This will unzip a new Ballerina server and create a new server location.
|
BMainInstance(BalServer balServer) |
BServerInstance(BalServer balServer) |
Copyright © 2018 WSO2. All rights reserved.