Package org.apache.myfaces.trinidad.convert

Examples of org.apache.myfaces.trinidad.convert.ColorConverter


    mock.verify();
  }

  public void testGetAsObjectIllegalValue()
  {
    ColorConverter converter = new ColorConverter();
    Mock mock = mock(UIComponent.class);
    UIComponent component = (UIComponent) mock.proxy();
    mock.stubs().method("getId").will(returnValue("test"));
    //component.setupGetId("test");
    try
    {
      converter.getAsString(facesContext, component, new Integer(1));
      fail("Expected a converter exception");
    } catch (IllegalArgumentException ex)
    {
      // expected
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.convert.ColorConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.