@Dependent public final class LRAMetricAssertions extends Object
Constructor and Description |
---|
LRAMetricAssertions() |
Modifier and Type | Method and Description |
---|---|
void |
assertAfterLRA(String message,
URI lraId,
Class<?> participantClazz)
Asserts that afterLRA was called for given LRA and participant class translated to fully qualified
classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertCancelled(String message,
URI lraId,
Class<?> participantClazz)
Asserts that cancelled was called for given LRA and participant class translated to fully qualified
classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertClosed(String message,
URI lraId,
Class<?> participantClazz)
Asserts that closed was called for given LRA and participant class translated to fully qualified classname
as String, if not the
AssertionError with the given message is thrown. |
void |
assertCompensated(String message,
URI lraId,
Class<?> participantClazz)
Asserts that compensated was called for given LRA and participant class translated to fully qualified
classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertCompensatedAllEquals(String message,
int expectedNumber)
Asserts that compensated was called
expectedNumber times for all LRAs and resources, if not
the AssertionError with the given message is thrown. |
void |
assertCompensatedEquals(String message,
int expectedNumber,
URI lraId,
Class<?> participantClazz)
Asserts that compensated was called
expectedNumber times for given LRA and participant class
translated to fully qualified classname as String, if not the AssertionError with the given message is
thrown. |
void |
assertCompleted(String message,
URI lraId,
Class<?> participantClazz)
Asserts that completed was called for given LRA and participant class translated to fully qualified
classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertCompletedAllEquals(String message,
int expectedNumber)
Asserts that completed was called
expectedNumber times for all LRAs and resources, if not the
AssertionError with the given message is thrown. |
void |
assertCompletedEquals(String message,
int expectedNumber,
URI lraId,
Class<?> participantClazz)
Asserts that completed was called
expectedNumber times for given LRA and participant class
translated to fully qualified classname as String, if not the AssertionError with the given message is
thrown. |
void |
assertFinished(String message,
URI lraId,
Class<?> participantClazz)
Asserts that given LRA within the resource name (taken as fully qualified class name) was finished, if not the
AssertionError with the given message is thrown. |
void |
assertForget(String message,
URI lraId,
Class<?> participantClazz)
Asserts that forget was called for given LRA and participant class translated to fully qualified classname
as String, if not the
AssertionError with the given message is thrown. |
void |
assertForgetEquals(String message,
int expectedNumber,
URI lraId,
Class<?> participantClazz)
Asserts that forget was called
expectedNumber times for given LRA and participant class
translated to fully qualified classname as String, if not the AssertionError with the given message is
thrown. |
void |
assertNested(String message,
URI lraId,
Class<?> participantClazz)
Asserts that nested was called for given LRA and participant class translated to fully qualified classname
as String, if not the
AssertionError with the given message is thrown. |
void |
assertNestedEquals(String message,
int expectedNumber,
URI lraId,
Class<?> participantClazz)
Asserts that nested was called
expectedNumber times for given LRA and participant class
translated to fully qualified classname as String, if not the AssertionError with the given message is
thrown. |
void |
assertNotAfterLRA(String message,
URI lraId,
Class<?> participantClazz)
Asserts that afterLRA was not called for given LRA and resource participant class translated to fully
qualified classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertNotCancelled(String message,
URI lraId,
Class<?> participantClazz)
Asserts that cancelled was not called for given LRA and resource participant class translated to fully
qualified classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertNotClosed(String message,
URI lraId,
Class<?> participantClazz)
Asserts that closed was not called for given LRA and resource participant class translated to fully
qualified classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertNotCompensated(String message,
URI lraId,
Class<?> participantClazz)
Asserts that compensated was not called for given LRA and participant class translated to fully qualified
classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertNotCompleted(String message,
URI lraId,
Class<?> participantClazz)
Asserts that completed was not called for given LRA and resource participant class translated to fully
qualified classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertNotForget(String message,
URI lraId,
Class<?> participantClazz)
Asserts that forget was not called for given LRA and resource participant class translated to fully
qualified classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertNotNested(String message,
URI lraId,
Class<?> participantClazz)
Asserts that nested was not called for given LRA and resource participant class translated to fully
qualified classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertNotStatus(String message,
URI lraId,
Class<?> participantClazz)
Asserts that status was not called for given LRA and resource participant class translated to fully
qualified classname as String, if not the
AssertionError with the given message is thrown. |
void |
assertStatus(String message,
URI lraId,
Class<?> participantClazz)
Asserts that status was called for given LRA and participant class translated to fully qualified classname
as String, if not the
AssertionError with the given message is thrown. |
public void assertCompensated(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNotCompensated(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertCompensatedEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz)
expectedNumber
times for given LRA and participant class
translated to fully qualified classname as String, if not the AssertionError
with the given message is
thrown.message
- assertion message when the check failsexpectedNumber
- expected count for the compensated calls to be found in the metric datalraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertCompensatedAllEquals(String message, int expectedNumber)
expectedNumber
times for all LRAs and resources, if not
the AssertionError
with the given message is thrown.message
- assertion message when the check failsexpectedNumber
- expected count for all the compensated calls to be found in the metric datapublic void assertCompleted(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNotCompleted(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertCompletedEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz)
expectedNumber
times for given LRA and participant class
translated to fully qualified classname as String, if not the AssertionError
with the given message is
thrown.message
- assertion message when the check failsexpectedNumber
- expected count for the completed calls to be found in the metric datalraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertCompletedAllEquals(String message, int expectedNumber)
expectedNumber
times for all LRAs and resources, if not the
AssertionError
with the given message is thrown.message
- assertion message when the check failsexpectedNumber
- expected count for all the compensated calls to be found in the metric datapublic void assertClosed(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNotClosed(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertCancelled(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNotCancelled(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertAfterLRA(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNotAfterLRA(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertForget(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNotForget(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertForgetEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz)
expectedNumber
times for given LRA and participant class
translated to fully qualified classname as String, if not the AssertionError
with the given message is
thrown.message
- assertion message when the check failsexpectedNumber
- expected count for the forget calls to be found in the metric datalraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertStatus(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNotStatus(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNested(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNotNested(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertNestedEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz)
expectedNumber
times for given LRA and participant class
translated to fully qualified classname as String, if not the AssertionError
with the given message is
thrown.message
- assertion message when the check failsexpectedNumber
- expected count for the nested calls to be found in the metric datalraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mappublic void assertFinished(String message, URI lraId, Class<?> participantClazz)
AssertionError
with the given message is thrown.message
- assertion message when the check failslraId
- LRA id which the assertion check will be taken againstparticipantClazz
- the participant class used as resource name in the mapCopyright © 2018 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.