}
}
public void testStateHolderSaveRestore()
{
NumberConverter converter = getNumberConverter();
NumberConverter restoreConverter = getNumberConverter();
Mock mock = mock(UIComponent.class);
UIComponent component = (UIComponent) mock.proxy();
MockUIComponentWrapper wrapper = new MockUIComponentWrapper(mock, component);
for (int i = 0; i < _LOCALES.length; i++)
{
converter.setLocale(_LOCALES[i]);
restoreConverter.setLocale(_LOCALES[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setCurrencyCode( _CURRENCY_CODES[i]);
restoreConverter.setCurrencyCode( _CURRENCY_CODES[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setCurrencySymbol(_CURRENCY_SYMBOLS[i]);
restoreConverter.setCurrencySymbol(_CURRENCY_SYMBOLS[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setIntegerOnly(_INTEGER_ONLY[1]);
restoreConverter.setIntegerOnly(_INTEGER_ONLY[1]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setMaxFractionDigits(_MAX_FRACTION_DIGITS[i]);
restoreConverter.setMaxFractionDigits(_MAX_FRACTION_DIGITS[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setMaxIntegerDigits(_MAX_INT_DIGITS[i]);
restoreConverter.setMaxIntegerDigits(_MAX_INT_DIGITS[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setMinFractionDigits(_MIN_FRACT_DIGITS[i]);
restoreConverter.setMinFractionDigits(_MIN_FRACT_DIGITS[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setMinIntegerDigits(_MIN_INT_DIGITS[i]);
restoreConverter.setMinIntegerDigits(_MIN_INT_DIGITS[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setPattern( _PATTTERNS[i]);
restoreConverter.setPattern(_PATTTERNS[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setTransient(_TRANSIENT[i]);
restoreConverter.setTransient(_TRANSIENT[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);
converter.setType(_TYPES[i]);
doTestStateHolderSaveRestore(converter, restoreConverter, facesContext, wrapper);