String[] types = {"number", "percent", "currency", "pattern"};
String[] customMessage = {"number", "percent", "currency", "pattern"};
for (int i = 0; i < failingValues.length ; i++)
{
MockFacesContext context = new MockFacesContext();
Mock mock = buildMockUIComponent(3);
UIComponent component = (UIComponent) mock.proxy();
org.apache.myfaces.trinidad.convert.NumberConverter converter =
new org.apache.myfaces.trinidad.convert.NumberConverter();
UIViewRoot root = facesContext.getViewRoot();
root.setLocale(Locale.US);
for (int j = 0; j < 3; j++)
{
context.setViewRoot(root);
}
try
{
// Trinidad Converter is not lenient.