Some AbstractRecord test classes return invalid TwoPhaseOutcome
values
----------------------------------------------------------------------
Key: JBTM-3048
URL:
https://issues.jboss.org/browse/JBTM-3048
Project: JBoss Transaction Manager
Issue Type: Bug
Components: Transaction Core
Affects Versions: 5.9.0.Final
Reporter: Michael Musgrove
Assignee: Michael Musgrove
Priority: Minor
Fix For: 5.9.1.Final
The test classes
arjuna/tests/classes/com/hp/mwtests/ts/arjuna/atomicaction/AtomicActionUnitTest.java
arjuna/tests/classes/com/hp/mwtests/ts/arjuna/atomicaction/TxStatsSystemErrorUnitTest.java
contain inner class implementations of AbstractRecord that return invalid values from the
action lifecycle methods. For example:
{code}
public int topLevelCommit() {return 0;}
{code}
which maps to TwoPhaseOutcome.PREPARE_OK which is wrong.