org.viewaframework.test
Class MenuItemTrapper

java.lang.Object
  extended by org.viewaframework.test.component.AbstractComponentTrapper<T>
      extended by org.viewaframework.test.component.AbstractButtonTrapper<JMenuItem>
          extended by org.viewaframework.test.MenuItemTrapper
All Implemented Interfaces:
ApplicationTrapperAware, ViewTrapperAware, Trapper<JMenuItem>

public class MenuItemTrapper
extends AbstractButtonTrapper<JMenuItem>

Since:
1.0.2
Author:
Mario Garcia

Constructor Summary
MenuItemTrapper(ApplicationTrapper applicationTrapper, String componentName)
           
 
Method Summary
 Class<JMenuItem> getType()
           
 MenuItemTrapper log(String message)
           
 MenuItemTrapper requireEnabled()
          Checks that the component is enabled otherwise the test will fail
 MenuItemTrapper requireText(String text)
           
 MenuItemTrapper requireToolTipText(String text)
           
 MenuItemTrapper requireVisible()
          Checks the component is visible otherwise the test will fail
 
Methods inherited from class org.viewaframework.test.component.AbstractButtonTrapper
click, click, requireEnabled, requireVisible
 
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

MenuItemTrapper

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

getType

public Class<JMenuItem> getType()
Returns:

log

public MenuItemTrapper log(String message)
Returns:

requireEnabled

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

Overrides:
requireEnabled in class AbstractButtonTrapper<JMenuItem>
Returns:

requireText

public MenuItemTrapper requireText(String text)
Overrides:
requireText in class AbstractButtonTrapper<JMenuItem>
Returns:

requireToolTipText

public MenuItemTrapper requireToolTipText(String text)
Overrides:
requireToolTipText in class AbstractButtonTrapper<JMenuItem>
Returns:

requireVisible

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

Overrides:
requireVisible in class AbstractButtonTrapper<JMenuItem>
Returns:


Copyright © 2010. All Rights Reserved.