org.viewaframework.test
Class TextTrapper

java.lang.Object
  extended by org.viewaframework.test.component.AbstractComponentTrapper<T>
      extended by org.viewaframework.test.component.AbstractTextTrapper<JTextField>
          extended by org.viewaframework.test.TextTrapper
All Implemented Interfaces:
ApplicationTrapperAware, ViewTrapperAware, Trapper<JTextField>

public class TextTrapper
extends AbstractTextTrapper<JTextField>

Author:
Mario Garcia

Constructor Summary
TextTrapper(ApplicationTrapper applicationTrapper, String componentName)
           
TextTrapper(ApplicationTrapper applicationTrapper, String viewId, String componentName)
           
 
Method Summary
 Class<JTextField> getType()
           
 TextTrapper log(String message)
           
 TextTrapper requireEnabled()
          Checks that the component is enabled otherwise the test will fail
 TextTrapper requireEnabled(boolean enabled)
          Checks whether the component is enabled or not
 TextTrapper requireVisible()
          Checks the component is visible otherwise the test will fail
 TextTrapper requireVisible(boolean visible)
          Checks whether the component is visible or not
 
Methods inherited from class org.viewaframework.test.component.AbstractTextTrapper
requireText, requireText, setText, setText
 
Methods inherited from class org.viewaframework.test.component.AbstractComponentTrapper
applicationTrapper, getTarget, setTarget, view, view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTrapper

public TextTrapper(ApplicationTrapper applicationTrapper,
                   String componentName)
Parameters:
applicationTrapper -
componentName -

TextTrapper

public TextTrapper(ApplicationTrapper applicationTrapper,
                   String viewId,
                   String componentName)
Parameters:
applicationTrapper -
viewId -
componentName -
Method Detail

getType

public Class<JTextField> getType()
Returns:

log

public TextTrapper log(String message)
Returns:

requireEnabled

public TextTrapper requireEnabled()
Description copied from class: AbstractComponentTrapper
Checks that the component is enabled otherwise the test will fail

Overrides:
requireEnabled in class AbstractTextTrapper<JTextField>
Returns:

requireEnabled

public TextTrapper requireEnabled(boolean enabled)
Description copied from class: AbstractComponentTrapper
Checks whether the component is enabled or not

Overrides:
requireEnabled in class AbstractTextTrapper<JTextField>
Returns:

requireVisible

public TextTrapper requireVisible()
Description copied from class: AbstractComponentTrapper
Checks the component is visible otherwise the test will fail

Overrides:
requireVisible in class AbstractTextTrapper<JTextField>
Returns:

requireVisible

public TextTrapper requireVisible(boolean visible)
Description copied from class: AbstractComponentTrapper
Checks whether the component is visible or not

Overrides:
requireVisible in class AbstractTextTrapper<JTextField>
Returns:


Copyright © 2010. All Rights Reserved.