Skip navigation links
A B C D E G H I J K L O P R S T U V W 

A

ACTIVEMQ_ALL_JAR - Static variable in class org.ballerinalang.test.context.Constant
 
ACTIVEMQ_PROVIDER_URL - Static variable in class org.ballerinalang.test.context.Constant
 
addLeecher(LogLeecher) - Method in class org.ballerinalang.test.context.ServerLogReader
Add a Leecher to this log reader.
addLogLeecher(LogLeecher) - Method in class org.ballerinalang.test.context.BServerInstance
Add a Leecher which is going to listen to an expected text.
AgentManager - Class in org.ballerinalang.test.context
Class which manage server agent related details, such as agent port etc.
apply(T) - Method in interface org.ballerinalang.test.util.HttpClientRequest.CheckedFunction
 

B

BALLERINA_AGENT_PATH - Static variable in class org.ballerinalang.test.context.Constant
 
BALLERINA_SERVER_SCRIPT_NAME - Static variable in class org.ballerinalang.test.context.Constant
 
BallerinaServerAgent - Class in org.ballerinalang.test.agent
This class hold the server information and manage the a server instance.
BallerinaServerAgent() - Constructor for class org.ballerinalang.test.agent.BallerinaServerAgent
 
BallerinaTestException - Exception in org.ballerinalang.test.context
Exception to be thrown by test utilities.
BallerinaTestException(String) - Constructor for exception org.ballerinalang.test.context.BallerinaTestException
 
BallerinaTestException(String, Throwable) - Constructor for exception org.ballerinalang.test.context.BallerinaTestException
 
BalServer - Class in org.ballerinalang.test.context
This class hold the server location and manage the a server location.
BalServer() - Constructor for class org.ballerinalang.test.context.BalServer
This will unzip a new Ballerina server and create a new server location.
beforeConfiguration(ITestResult) - Method in class org.ballerinalang.test.listener.TestNGListener
 
BHandler - Interface in org.ballerinalang.test.agent.server
Handler interface to implement.
BMain - Interface in org.ballerinalang.test.context
Interface for test Server implementation.
BMainInstance - Class in org.ballerinalang.test.context
This class hold the server information and manage the a server instance.
BMainInstance(BalServer) - Constructor for class org.ballerinalang.test.context.BMainInstance
 
body() - Method in class org.ballerinalang.test.agent.server.Request
Returns the body of the request.
BServer - Interface in org.ballerinalang.test.context
Interface for test Server implementation.
BServerInstance - Class in org.ballerinalang.test.context
This class hold the server information and manage the a server instance.
BServerInstance(BalServer) - Constructor for class org.ballerinalang.test.context.BServerInstance
 

C

channelInactive(ChannelHandlerContext) - Method in class org.ballerinalang.test.util.client.ResponseHandler
 
channelRead(ChannelHandlerContext, Object) - Method in class org.ballerinalang.test.util.client.ResponseHandler
 
CHARSET_NAME - Static variable in class org.ballerinalang.test.util.TestConstant
 
checkPortAvailability(int) - Static method in class org.ballerinalang.test.context.Utils
Check whether given port is in use or not.
checkPortsAvailability(int[]) - Static method in class org.ballerinalang.test.context.Utils
Check whether given ports are in use or not.
cleanup() - Method in class org.ballerinalang.test.context.BalServer
Clean up this server instance by removing the work directory.
COMMON_NETS_JAR - Static variable in class org.ballerinalang.test.context.Constant
 
Constant - Class in org.ballerinalang.test.context
Constant used for server startup.
Constant() - Constructor for class org.ballerinalang.test.context.Constant
 
CONTENT_TYPE_FORM_URL_ENCODED - Static variable in class org.ballerinalang.test.util.TestConstant
 
CONTENT_TYPE_JSON - Static variable in class org.ballerinalang.test.util.TestConstant
 
CONTENT_TYPE_TEXT_PLAIN - Static variable in class org.ballerinalang.test.util.TestConstant
 
CONTENT_TYPE_XML - Static variable in class org.ballerinalang.test.util.TestConstant
 
copyFile(Path, Path) - Static method in class org.ballerinalang.test.context.Utils
Copy a file.

D

DEFAULT_HTTP_PORT - Static variable in class org.ballerinalang.test.context.Constant
 
DEFLATE - Static variable in class org.ballerinalang.test.util.TestConstant
 
deleteFolder(File) - Static method in class org.ballerinalang.test.context.Utils
Delete a given folder and all it's content.
doGet(String, Map<String, String>) - Static method in class org.ballerinalang.test.util.HttpClientRequest
Sends an HTTP GET request to a url.
doGet(String, int, HttpClientRequest.CheckedFunction) - Static method in class org.ballerinalang.test.util.HttpClientRequest
Sends an HTTP GET request to a url.
doGet(String) - Static method in class org.ballerinalang.test.util.HttpClientRequest
Sends an HTTP GET request to a url.
doGet(String, boolean) - Static method in class org.ballerinalang.test.util.HttpClientRequest
Sends an HTTP GET request to a url.
doHead(String) - Static method in class org.ballerinalang.test.util.HttpClientRequest
Sends an HTTP HEAD request to a url.
doHead(String, Map<String, String>) - Static method in class org.ballerinalang.test.util.HttpClientRequest
Sends an HTTP HEAD request to a url.
doMultipartFormData(String, Map<String, String>, Map<String, String>) - Static method in class org.ballerinalang.test.util.HttpClientRequest
Sends multipart/form-data requests.
doOptions(String, Map<String, String>) - Static method in class org.ballerinalang.test.util.HttpClientRequest
Sends an HTTP OPTIONS request to a url.
doPost(String, String, Map<String, String>) - Static method in class org.ballerinalang.test.util.HttpClientRequest
Send an HTTP POST request to a service.

E

ENCODING_GZIP - Static variable in class org.ballerinalang.test.util.TestConstant
 
exceptionCaught(ChannelHandlerContext, Throwable) - Method in class org.ballerinalang.test.util.client.ResponseHandler
 
extractFile(String, String) - Static method in class org.ballerinalang.test.context.Utils
Unzip a zip file into a given location.

G

get(String, BHandler) - Method in class org.ballerinalang.test.agent.server.WebServer
Adds a GET route.
getChannelEventMsg() - Method in class org.ballerinalang.test.util.client.ResponseHandler
 
getData() - Method in class org.ballerinalang.test.util.HttpResponse
 
getHandler() - Method in class org.ballerinalang.test.agent.server.Route
 
getHeaders() - Method in class org.ballerinalang.test.util.HttpResponse
 
getInstance() - Static method in class org.ballerinalang.test.context.AgentManager
 
getMethod() - Method in class org.ballerinalang.test.agent.server.Route
 
getOSName() - Static method in class org.ballerinalang.test.context.Utils
Return the system property value of os.name.
getPath() - Method in class org.ballerinalang.test.agent.server.Route
 
getResponseCode() - Method in class org.ballerinalang.test.util.HttpResponse
 
getResponseMessage() - Method in class org.ballerinalang.test.util.HttpResponse
 
getServerHome() - Method in class org.ballerinalang.test.context.BalServer
Return server home path.
getServerHome() - Method in class org.ballerinalang.test.context.BServerInstance
Return server home path.
getServiceURLHttp(int, String) - Method in class org.ballerinalang.test.context.BServerInstance
A utility method to construct and return the HTTP service URL by using the given port.
getServiceURLHttps(int, String) - Method in class org.ballerinalang.test.context.BServerInstance
A utility method to construct and return the HTTPS service URL by using the given port.

H

handle() - Method in interface org.ballerinalang.test.agent.server.BHandler
Handle method to handle requests.
HTTP2_RESPONSE_TIME_OUT - Static variable in class org.ballerinalang.test.util.TestConstant
 
HTTP2_RESPONSE_TIME_UNIT - Static variable in class org.ballerinalang.test.util.TestConstant
 
HTTP_METHOD_GET - Static variable in class org.ballerinalang.test.util.TestConstant
 
HTTP_METHOD_HEAD - Static variable in class org.ballerinalang.test.util.TestConstant
 
HTTP_METHOD_OPTIONS - Static variable in class org.ballerinalang.test.util.TestConstant
 
HTTP_METHOD_POST - Static variable in class org.ballerinalang.test.util.TestConstant
 
HttpClient - Class in org.ballerinalang.test.util.client
A simple Netty based HTTP client to be used in test cases.
HttpClient(String, int) - Constructor for class org.ballerinalang.test.util.client.HttpClient
 
HttpClientRequest - Class in org.ballerinalang.test.util
This class can be used to send http request.
HttpClientRequest() - Constructor for class org.ballerinalang.test.util.HttpClientRequest
 
HttpClientRequest.CheckedFunction<T,R> - Interface in org.ballerinalang.test.util
This is a custom functional interface which allows defining a method that throws an IOException.
HttpResponse - Class in org.ballerinalang.test.util
This class is a simple representation of an HTTP response.
HttpResponse(String, int) - Constructor for class org.ballerinalang.test.util.HttpResponse
 
HttpResponse(String, int, Map<String, String>) - Constructor for class org.ballerinalang.test.util.HttpResponse
 

I

IDENTITY - Static variable in class org.ballerinalang.test.util.TestConstant
 

J

JACOCO_AGENT_ARG_LINE - Static variable in class org.ballerinalang.test.context.Constant
 

K

killServer() - Method in interface org.ballerinalang.test.context.BServer
Forcefully kills the server.
killServer() - Method in class org.ballerinalang.test.context.BServerInstance
Kill the server instance which is started by start method.

L

LogLeecher - Class in org.ballerinalang.test.context
A Leecher can attach to a ServerLogReader and wait until a specific text is printed in the log.
LogLeecher(String) - Constructor for class org.ballerinalang.test.context.LogLeecher
Initializes the Leecher with expected log.
LogLeecher(String, LogLeecher.LeecherType) - Constructor for class org.ballerinalang.test.context.LogLeecher
Initializes the Leecher with expected log.
LogLeecher.LeecherType - Enum in org.ballerinalang.test.context
Leecher type enum.

O

onExecutionFinish() - Method in class org.ballerinalang.test.listener.TestExecutionListener
This method will execute after all the test classes are executed and this will stop the server started by start method.
onExecutionStart() - Method in class org.ballerinalang.test.listener.TestExecutionListener
This method will execute before all the test classes are executed and this will start a server with sample service files deployed.
onTestFailure(ITestResult) - Method in class org.ballerinalang.test.listener.TestNGListener
 
onTestSkipped(ITestResult) - Method in class org.ballerinalang.test.listener.TestNGListener
 
onTestStart(ITestResult) - Method in class org.ballerinalang.test.listener.TestNGListener
 
onTestSuccess(ITestResult) - Method in class org.ballerinalang.test.listener.TestNGListener
 
org.ballerinalang.test.agent - package org.ballerinalang.test.agent
 
org.ballerinalang.test.agent.server - package org.ballerinalang.test.agent.server
 
org.ballerinalang.test.context - package org.ballerinalang.test.context
 
org.ballerinalang.test.listener - package org.ballerinalang.test.listener
 
org.ballerinalang.test.util - package org.ballerinalang.test.util
 
org.ballerinalang.test.util.client - package org.ballerinalang.test.util.client
 

P

post(String, BHandler) - Method in class org.ballerinalang.test.agent.server.WebServer
Adds a POST route.
premain(String, Instrumentation) - Static method in class org.ballerinalang.test.agent.BallerinaServerAgent
This method will be called before invoking ballerina Main method.
PROJECT_BUILD_DIR - Static variable in class org.ballerinalang.test.context.Constant
 

R

removeAllLeechers() - Method in class org.ballerinalang.test.context.BServerInstance
Removes all added log leechers from this instance.
removeAllLeechers() - Method in class org.ballerinalang.test.context.ServerLogReader
Removes all added log leechers from this instance.
Request - Class in org.ballerinalang.test.agent.server
The Request class provides convenience helpers to the underyling HTTP Request.
Request(FullHttpRequest) - Constructor for class org.ballerinalang.test.agent.server.Request
Creates a new Request.
Response - Class in org.ballerinalang.test.agent.server
Response object to respond.
Response() - Constructor for class org.ballerinalang.test.agent.server.Response
 
ResponseHandler - Class in org.ballerinalang.test.util.client
A Netty handler for reading the responses sent by the server.
ResponseHandler() - Constructor for class org.ballerinalang.test.util.client.ResponseHandler
 
Route - Class in org.ballerinalang.test.agent.server
The Route class represents a single entry in the RouteTable.
run() - Method in class org.ballerinalang.test.context.ServerLogReader
This will get executed when log reading is started.
runMain(String) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided .bal file.
runMain(String, LogLeecher[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided .bal file.
runMain(String, String[], String[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided .bal file.
runMain(String, String[], String[], LogLeecher[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided .bal file.
runMain(String, String[], String[], Map<String, String>, String[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided .bal file.
runMain(String, String[], String[], Map<String, String>, String[], LogLeecher[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided .bal file.
runMain(String, String) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided bal package.
runMain(String, String, LogLeecher[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided bal package.
runMain(String, String, String[], String[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided bal package.
runMain(String, String, String[], String[], LogLeecher[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided bal package.
runMain(String, String, String[], String[], Map<String, String>, String[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided bal package.
runMain(String, String, String[], String[], Map<String, String>, String[], LogLeecher[]) - Method in interface org.ballerinalang.test.context.BMain
Run ballerina main function provided bal package.
runMain(String) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, LogLeecher[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String[], String[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String[], String[], LogLeecher[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String[], String[], Map<String, String>, String[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String[], String[], Map<String, String>, String[], LogLeecher[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String, LogLeecher[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String, String[], String[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String, String[], String[], LogLeecher[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String, String[], String[], Map<String, String>, String[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String, String[], String[], Map<String, String>, String[], LogLeecher[]) - Method in class org.ballerinalang.test.context.BMainInstance
 
runMain(String, String[], Map<String, String>, String[], LogLeecher[], String) - Method in class org.ballerinalang.test.context.BMainInstance
Executing the sh or bat file to start the server.
runMainAndReadStdOut(String, String[], String) - Method in class org.ballerinalang.test.context.BMainInstance
Executing the sh or bat file to start the server and returns the logs printed to stdout.

S

sendChunkRequest(FullHttpRequest) - Method in class org.ballerinalang.test.util.client.HttpClient
 
sendExpectContinueRequest(DefaultHttpRequest, DefaultLastHttpContent) - Method in class org.ballerinalang.test.util.client.HttpClient
 
sendMultiplePipelinedRequests(String) - Method in class org.ballerinalang.test.util.client.HttpClient
Send pipelined requests to the server and do not expect a response hence a latch shouldn't be set in response handler for channel read.
sendPipeLinedRequests(String) - Method in class org.ballerinalang.test.util.client.HttpClient
Send pipelined requests to the server.
sendRequest(FullHttpRequest) - Method in class org.ballerinalang.test.util.client.HttpClient
 
sendTwoInPipeline(FullHttpRequest) - Method in class org.ballerinalang.test.util.client.HttpClient
 
SERVER_PID_FILE_NAME - Static variable in class org.ballerinalang.test.context.Constant
 
ServerLogReader - Class in org.ballerinalang.test.context
The log reader which reads the ballerina log and passes them to the test suite.
ServerLogReader(String, InputStream) - Constructor for class org.ballerinalang.test.context.ServerLogReader
Initialize the reader with reader name and stream to read.
SERVICE_FILE_EXTENSION - Static variable in class org.ballerinalang.test.context.Constant
 
SERVICE_SAMPLE_DIR - Static variable in class org.ballerinalang.test.context.Constant
 
setData(String) - Method in class org.ballerinalang.test.util.HttpResponse
 
setHeaders(Map<String, String>) - Method in class org.ballerinalang.test.util.HttpResponse
 
setLatch(CountDownLatch) - Method in class org.ballerinalang.test.util.client.ResponseHandler
 
setResponseCode(int) - Method in class org.ballerinalang.test.util.HttpResponse
 
setResponseMessage(String) - Method in class org.ballerinalang.test.util.HttpResponse
 
shutdownServer() - Method in interface org.ballerinalang.test.context.BServer
Stops the server started by startServer method.
shutdownServer() - Method in class org.ballerinalang.test.context.BServerInstance
Stop the server instance which is started by start method.
start() - Method in class org.ballerinalang.test.agent.server.WebServer
Starts the web server.
start() - Method in class org.ballerinalang.test.context.ServerLogReader
Start reading the stream.
startAgentServer() - Static method in class org.ballerinalang.test.agent.BallerinaServerAgent
Start the agent server for managing the server.
startServer(String) - Method in interface org.ballerinalang.test.context.BServer
Start ballerina server passing provided .bal files.
startServer(String, int[]) - Method in interface org.ballerinalang.test.context.BServer
Start ballerina server passing provided .bal files.
startServer(String, String[], int[]) - Method in interface org.ballerinalang.test.context.BServer
Start ballerina server passing provided .bal files.
startServer(String, String[], Map<String, String>, int[]) - Method in interface org.ballerinalang.test.context.BServer
Start ballerina server passing provided .bal files.
startServer(String, String) - Method in interface org.ballerinalang.test.context.BServer
Start ballerina server passing provided bal package.
startServer(String, String, int[]) - Method in interface org.ballerinalang.test.context.BServer
Start ballerina server passing provided bal package.
startServer(String, String, String[], int[]) - Method in interface org.ballerinalang.test.context.BServer
Start ballerina server passing provided bal package.
startServer(String, String, String[], Map<String, String>, int[]) - Method in interface org.ballerinalang.test.context.BServer
Start ballerina server passing provided bal package.
startServer(String) - Method in class org.ballerinalang.test.context.BServerInstance
 
startServer(String, int[]) - Method in class org.ballerinalang.test.context.BServerInstance
 
startServer(String, String[], int[]) - Method in class org.ballerinalang.test.context.BServerInstance
 
startServer(String, String[], Map<String, String>, int[]) - Method in class org.ballerinalang.test.context.BServerInstance
 
startServer(String, String) - Method in class org.ballerinalang.test.context.BServerInstance
 
startServer(String, String, int[]) - Method in class org.ballerinalang.test.context.BServerInstance
 
startServer(String, String, String[], int[]) - Method in class org.ballerinalang.test.context.BServerInstance
 
startServer(String, String, String[], Map<String, String>, int[]) - Method in class org.ballerinalang.test.context.BServerInstance
 
stop() - Method in class org.ballerinalang.test.context.ServerLogReader
Stop reading the stream.
SYSTEM_PROP_BASE_DIR - Static variable in class org.ballerinalang.test.context.Constant
 
SYSTEM_PROP_SERVER_ZIP - Static variable in class org.ballerinalang.test.context.Constant
 

T

TestConstant - Class in org.ballerinalang.test.util
Constants used in test cases.
TestConstant() - Constructor for class org.ballerinalang.test.util.TestConstant
 
TestExecutionListener - Class in org.ballerinalang.test.listener
TestNg listener to start and stop a server before all test classes are executed for integration test.
TestExecutionListener() - Constructor for class org.ballerinalang.test.listener.TestExecutionListener
 
TestNGListener - Class in org.ballerinalang.test.listener
Test listener for listening to test events.
TestNGListener() - Constructor for class org.ballerinalang.test.listener.TestNGListener
 
text - Variable in class org.ballerinalang.test.context.LogLeecher
 

U

userEventTriggered(ChannelHandlerContext, Object) - Method in class org.ballerinalang.test.util.client.ResponseHandler
 
Utils - Class in org.ballerinalang.test.context
Utility class for test integration common functions.
Utils() - Constructor for class org.ballerinalang.test.context.Utils
 

V

valueOf(String) - Static method in enum org.ballerinalang.test.context.LogLeecher.LeecherType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.ballerinalang.test.context.LogLeecher.LeecherType
Returns an array containing the constants of this enum type, in the order they are declared.
VFS_LOCATION - Static variable in class org.ballerinalang.test.context.Constant
 

W

waitForChannelClose() - Method in class org.ballerinalang.test.util.client.HttpClient
 
waitForPortsToClose(int[], int) - Static method in class org.ballerinalang.test.context.Utils
This method will wait until given ports are closed within given timeout value in mills.
waitForPortsToOpen(int[], long, boolean, String) - Static method in class org.ballerinalang.test.context.Utils
This method will wait for given ports to open until given timeout period.
waitForText(long) - Method in class org.ballerinalang.test.context.LogLeecher
Wait until a specific log is found.
WebServer - Class in org.ballerinalang.test.agent.server
The WebServer class is a convenience wrapper around the Netty HTTP server.
WebServer(String, int) - Constructor for class org.ballerinalang.test.agent.server.WebServer
Creates a new WebServer.
A B C D E G H I J K L O P R S T U V W 
Skip navigation links

Copyright © 2018 WSO2. All rights reserved.