SwingTextbox extends SwingElement implements XulTextbox { public String getMax() { return "" + max; } SwingTextbox( Element self, XulComponent parent, XulDomContainer domContainer, String tagName ); String getValue(); void setValue( String text ); @Override void layout(); int getMaxlength(); boolean isDisabled(); void setDisabled( boolean dis ); void setMaxlength( int length ); boolean isMultiline(); void setMultiline( boolean multi ); boolean isReadonly(); void setReadonly( boolean readOnly ); String getType(); void setType( String type ); void setType( TextType type ); void selectAll(); void setFocus(); Object getTextControl(); @Override int getWidth(); @Override void setWidth( int width ); @Override Object getManagedObject(); void setOninput( final String method ); String getMin(); void setMin( String min ); String getMax(); void setMax( String max ); void setCommand( String command );  }
@Test public void maxTest() { XulTextbox txt = (XulTextbox) doc.getElementById( "textbox3" ); assertEquals( "500", txt.getMax() ); }