public class FakeRtsa
extends java.lang.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 java.util.Map<java.lang.String,FakeRtsa.FunctionMapping> |
functions |
private static java.util.Random |
random |
| Constructor and Description |
|---|
FakeRtsa() |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.String |
createResponse(java.lang.String request,
FakeRtsa.Deployment deployment)
Creates a fake response.
|
private static void |
extractDeployments(java.io.File baseDir)
Extracts the deployments.
|
static java.util.stream.Stream<java.lang.String> |
lines(java.lang.String string)
Replacement for Java 11
String.lines(). |
private static java.util.List<FakeRtsa.Deployment> |
loadDeployments(java.io.File baseDir,
java.lang.String defaultPath)
Loads the unpacked deployments.
|
static void |
main(java.lang.String[] args)
Executes the fake server.
|
private static java.util.Random random
private static java.util.Map<java.lang.String,FakeRtsa.FunctionMapping> functions
public static void main(java.lang.String[] args)
throws java.io.IOException
args - ignoredjava.io.IOException - shall not occurprivate static void extractDeployments(java.io.File baseDir)
baseDir - the RTSA base directoryprivate static java.util.List<FakeRtsa.Deployment> loadDeployments(java.io.File baseDir, java.lang.String defaultPath)
baseDir - the base directorydefaultPath - the default path if no one is specifiedpublic static java.util.stream.Stream<java.lang.String> lines(java.lang.String string)
String.lines().string - the string to streamprivate static java.lang.String createResponse(java.lang.String request,
FakeRtsa.Deployment deployment)
request - the requestdeployment - the deployment specCopyright © 2025. All rights reserved.