public class BServiceUtil extends Object
BServiceUtil
is responsible for initializing an environment for a particular ballerina file.Constructor and Description |
---|
BServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
runService(CompileResult compileResult)
Helper method for running a service given a CompileResult instance.
|
static CompileResult |
setupProgramFile(Object obj,
String sourcePath)
Helper method to setup a Ballerina file for test.
|
static CompileResult |
setupProgramFile(Object obj,
String sourcePath,
String pkgPath)
Helper method to setup program file for tests.
|
public static void runService(CompileResult compileResult)
compileResult
- CompileResult instance for the service to be run.public static CompileResult setupProgramFile(Object obj, String sourcePath, String pkgPath)
obj
- to find the source location of the original caller.sourcePath
- source file path.pkgPath
- package path.public static CompileResult setupProgramFile(Object obj, String sourcePath)
obj
- to find the source location of the original caller.sourcePath
- of the file.Copyright © 2018 WSO2. All rights reserved.