Class LRAMetricAssertions
java.lang.Object
org.eclipse.microprofile.lra.tck.service.LRAMetricAssertions
Assertion methods usable with metrics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertAfterLRA(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 theAssertionErrorwith the given message is thrown.voidassertCancelled(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 theAssertionErrorwith the given message is thrown.voidassertClosed(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 theAssertionErrorwith the given message is thrown.voidassertCompensated(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 theAssertionErrorwith the given message is thrown.voidassertCompensatedAllEquals(String message, int expectedNumber) Asserts that compensated was calledexpectedNumbertimes for all LRAs and resources, if not theAssertionErrorwith the given message is thrown.voidassertCompensatedEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz) Asserts that compensated was calledexpectedNumbertimes for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.voidassertCompleted(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 theAssertionErrorwith the given message is thrown.voidassertCompletedAllEquals(String message, int expectedNumber) Asserts that completed was calledexpectedNumbertimes for all LRAs and resources, if not theAssertionErrorwith the given message is thrown.voidassertCompletedEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz) Asserts that completed was calledexpectedNumbertimes for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.voidassertFinished(String message, URI lraId, Class<?> participantClazz) Asserts that given LRA within the resource name (taken as fully qualified class name) was finished, if not theAssertionErrorwith the given message is thrown.voidassertForget(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 theAssertionErrorwith the given message is thrown.voidassertForgetEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz) Asserts that forget was calledexpectedNumbertimes for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.voidassertNested(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 theAssertionErrorwith the given message is thrown.voidassertNestedEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz) Asserts that nested was calledexpectedNumbertimes for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.voidassertNotAfterLRA(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 theAssertionErrorwith the given message is thrown.voidassertNotCancelled(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 theAssertionErrorwith the given message is thrown.voidassertNotClosed(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 theAssertionErrorwith the given message is thrown.voidassertNotCompensated(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 theAssertionErrorwith the given message is thrown.voidassertNotCompleted(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 theAssertionErrorwith the given message is thrown.voidassertNotForget(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 theAssertionErrorwith the given message is thrown.voidassertNotNested(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 theAssertionErrorwith the given message is thrown.voidassertNotStatus(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 theAssertionErrorwith the given message is thrown.voidassertStatus(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 theAssertionErrorwith the given message is thrown.
-
Constructor Details
-
LRAMetricAssertions
public LRAMetricAssertions()
-
-
Method Details
-
assertCompensated
Asserts that compensated was called for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNotCompensated
Asserts that compensated was not called for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertCompensatedEquals
public void assertCompensatedEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz) Asserts that compensated was calledexpectedNumbertimes for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertCompensatedAllEquals
Asserts that compensated was calledexpectedNumbertimes for all LRAs and resources, if not theAssertionErrorwith the given message is thrown.- Parameters:
message- assertion message when the check failsexpectedNumber- expected count for all the compensated calls to be found in the metric data
-
assertCompleted
Asserts that completed was called for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNotCompleted
Asserts that completed was not called for given LRA and resource participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertCompletedEquals
public void assertCompletedEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz) Asserts that completed was calledexpectedNumbertimes for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertCompletedAllEquals
Asserts that completed was calledexpectedNumbertimes for all LRAs and resources, if not theAssertionErrorwith the given message is thrown.- Parameters:
message- assertion message when the check failsexpectedNumber- expected count for all the compensated calls to be found in the metric data
-
assertClosed
Asserts that closed was called for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNotClosed
Asserts that closed was not called for given LRA and resource participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertCancelled
Asserts that cancelled was called for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNotCancelled
Asserts that cancelled was not called for given LRA and resource participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertAfterLRA
Asserts that afterLRA was called for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNotAfterLRA
Asserts that afterLRA was not called for given LRA and resource participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertForget
Asserts that forget was called for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNotForget
Asserts that forget was not called for given LRA and resource participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertForgetEquals
public void assertForgetEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz) Asserts that forget was calledexpectedNumbertimes for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertStatus
Asserts that status was called for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNotStatus
Asserts that status was not called for given LRA and resource participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNested
Asserts that nested was called for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNotNested
Asserts that nested was not called for given LRA and resource participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertNestedEquals
public void assertNestedEquals(String message, int expectedNumber, URI lraId, Class<?> participantClazz) Asserts that nested was calledexpectedNumbertimes for given LRA and participant class translated to fully qualified classname as String, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-
assertFinished
Asserts that given LRA within the resource name (taken as fully qualified class name) was finished, if not theAssertionErrorwith the given message is thrown.- Parameters:
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 map
-