public class FakeRtsa extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
FakeRtsa.Deployment
Represents a deployment specification.
|
static interface |
FakeRtsa.FunctionMapping
Represents a function mapping.
|
static class |
FakeRtsa.FunctionMapping1
Represents a simple function mapping.
|
static class |
FakeRtsa.Input
Represents RTSA input.
|
static class |
FakeRtsa.RandomArgumentSelector
A simple random argument selector.
|
static class |
FakeRtsa.Spec
Represents the contents of a spec.yml file in a deployment.
|
| Modifier and Type | Field and Description |
|---|---|
private static Map<String,FakeRtsa.FunctionMapping> |
functions |
private static Random |
random |
| Constructor and Description |
|---|
FakeRtsa() |
| Modifier and Type | Method and Description |
|---|---|
private static String |
createResponse(String request,
FakeRtsa.Deployment deployment)
Creates a fake response.
|
private static void |
extractDeployments(File baseDir)
Extracts the deployments.
|
static Stream<String> |
lines(String string)
Replacement for Java 11
String.lines(). |
private static List<FakeRtsa.Deployment> |
loadDeployments(File baseDir,
String defaultPath)
Loads the unpacked deployments.
|
static void |
main(String[] args)
Executes the fake server.
|
private static Random random
private static Map<String,FakeRtsa.FunctionMapping> functions
public static void main(String[] args) throws IOException
args - ignoredIOException - shall not occurprivate static void extractDeployments(File baseDir)
baseDir - the RTSA base directoryprivate static List<FakeRtsa.Deployment> loadDeployments(File baseDir, String defaultPath)
baseDir - the base directorydefaultPath - the default path if no one is specifiedpublic static Stream<String> lines(String string)
String.lines().string - the string to streamprivate static String createResponse(String request, FakeRtsa.Deployment deployment)
request - the requestdeployment - the deployment specCopyright © 2022. All rights reserved.