| Package | Description |
|---|---|
| io.klerch.alexa.test.client | |
| io.klerch.alexa.test.client.endpoint | |
| io.klerch.alexa.test.response |
| Modifier and Type | Method and Description |
|---|---|
AlexaResponse |
AlexaSession.cancel()
Fires the builtin cancel-intent.
|
AlexaResponse |
AlexaClient.getLastResponse() |
AlexaResponse |
AlexaSession.help()
Fires the builtin help-intent.
|
AlexaResponse |
AlexaSession.intent(String intentName)
Fires an intent without any slots.
|
AlexaResponse |
AlexaSession.intent(String intentName,
List<com.amazon.speech.slu.Slot> slots)
Fires an intent with zero to many slots
|
AlexaResponse |
AlexaSession.intent(String intentName,
Map<String,Object> slots)
Fires an intent with zero to many slots
|
AlexaResponse |
AlexaSession.intent(String intentName,
String slotName,
Object slotValue)
Fires an intent with a single slot
|
AlexaResponse |
AlexaSession.launch()
Fires a launch request
|
AlexaResponse |
AlexaSession.loopOff()
Fires the builtin loop-off-intent.
|
AlexaResponse |
AlexaSession.loopOn()
Fires the builtin loop-on-intent.
|
AlexaResponse |
AlexaSession.next()
Fires the builtin next-intent.
|
AlexaResponse |
AlexaSession.no()
Fires the builtin no-intent.
|
AlexaResponse |
AlexaSession.pause()
Fires the builtin pause-intent.
|
AlexaResponse |
AlexaSession.previous()
Fires the builtin previous-intent.
|
AlexaResponse |
AlexaSession.repeat()
Fires the builtin repeat-intent.
|
AlexaResponse |
AlexaSession.resume()
Fires the builtin resume-intent.
|
AlexaResponse |
AlexaSession.say(String utterance) |
AlexaResponse |
AlexaSession.shuffleOff()
Fires the builtin shuffle-off-intent.
|
AlexaResponse |
AlexaSession.shuffleOn()
Fires the builtin shuffle-on-intent.
|
AlexaResponse |
AlexaSession.startOver()
Fires the builtin start-over-intent.
|
AlexaResponse |
AlexaSession.stop()
Fires the builtin stop-intent.
|
AlexaResponse |
AlexaSession.yes()
Fires the builtin yes-intent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AlexaSession.exploitResponse(AlexaResponse response) |
abstract void |
AlexaActor.exploitResponse(AlexaResponse response)
Once a request was made to the skill a response is received.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<AlexaResponse> |
AlexaSimulationApiEndpoint.fire(AlexaRequest request,
String payload) |
Optional<AlexaResponse> |
AlexaRequestStreamHandlerEndpoint.fire(AlexaRequest request,
String payload) |
Optional<AlexaResponse> |
AlexaLambdaEndpoint.fire(AlexaRequest request,
String payload) |
Optional<AlexaResponse> |
AlexaEndpoint.fire(AlexaRequest request,
String payload) |
Optional<AlexaResponse> |
AlexaApiEndpoint.fire(AlexaRequest request,
String payload) |
| Modifier and Type | Method and Description |
|---|---|
AlexaResponse |
AlexaResponse.assertContains(String jsonPathExpression,
String s) |
AlexaResponse |
AlexaResponse.assertEquals(String jsonPathExpression,
Object o) |
AlexaResponse |
AlexaResponse.assertExecutionTimeLessThan(long millis)
Validates the execution time of the request call to the skill.
|
AlexaResponse |
AlexaResponse.assertExists(String jsonPathExpression) |
AlexaResponse |
AlexaResponse.assertFalse(String jsonPathExpression) |
AlexaResponse |
AlexaResponse.assertNotExists(String jsonPathExpression) |
AlexaResponse |
AlexaResponse.assertThat(Predicate<com.amazon.speech.json.SpeechletResponseEnvelope> responseEnvelope)
Validates a custom predicate executed against the response envelope.
|
AlexaResponse |
AlexaResponse.assertThat(String jsonPathExpression)
Validates a custom json-path expression
throws an IllegalArgumentException in the expression does not return an element
|
AlexaResponse |
AlexaResponse.assertTrue(String jsonPathExpression) |
AlexaResponse |
AlexaResponse.ifContains(String jsonPathExpression,
String s,
Consumer<AlexaSession> followUp) |
AlexaResponse |
AlexaResponse.ifEquals(String jsonPathExpression,
Object o,
Consumer<AlexaSession> followUp) |
AlexaResponse |
AlexaResponse.ifExists(String jsonPathExpression,
Consumer<AlexaSession> followUp) |
AlexaResponse |
AlexaResponse.ifFalse(String jsonPathExpression,
Consumer<AlexaSession> followUp) |
AlexaResponse |
AlexaResponse.ifIs(String jsonPathExpression,
Consumer<AlexaSession> followUp)
Validates a custom predicate executed against the response envelope.
|
AlexaResponse |
AlexaResponse.ifNotExists(String jsonPathExpression,
Consumer<AlexaSession> followUp) |
AlexaResponse |
AlexaResponse.ifTrue(String jsonPathExpression,
Consumer<AlexaSession> followUp) |
AlexaResponse |
AlexaResponse.is(Predicate<com.amazon.speech.json.SpeechletResponseEnvelope> responseEnvelope,
Consumer<AlexaSession> followUp)
Validates a custom predicate executed against the response envelope.
|
Copyright © 2018. All rights reserved.