Author: jjamrich
Date: 2011-07-01 16:09:01 -0400 (Fri, 01 Jul 2011)
New Revision: 22539
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/TestRichSlider.java
Log:
Fix RichSlider test for immediate attribute
Since phaseInfo checks substring starting at position 3, there is
neccessary to check for rest of message foloowing '1*' token
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/TestRichSlider.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/TestRichSlider.java 2011-07-01
20:08:38 UTC (rev 22538)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/TestRichSlider.java 2011-07-01
20:09:01 UTC (rev 22539)
@@ -230,7 +230,8 @@
phaseInfo.assertPhases(PhaseId.RESTORE_VIEW, PhaseId.APPLY_REQUEST_VALUES,
PhaseId.PROCESS_VALIDATIONS,
PhaseId.UPDATE_MODEL_VALUES, PhaseId.INVOKE_APPLICATION,
PhaseId.RENDER_RESPONSE);
- phaseInfo.assertListener(PhaseId.APPLY_REQUEST_VALUES, "1 value changed: 2
-> -10");
+ // Remove first 2 preceding chars from correct message (used to remove usual
'* ' token)
+ phaseInfo.assertListener(PhaseId.APPLY_REQUEST_VALUES, "value changed: 2
-> -10");
}
@Test
Show replies by date