Class MockedUI

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier , com.vaadin.flow.component.DetachNotifier , com.vaadin.flow.component.HasComponents , com.vaadin.flow.component.HasElement , com.vaadin.flow.component.HasEnabled , com.vaadin.flow.component.HasStyle , com.vaadin.flow.component.PollNotifier , com.vaadin.flow.router.RouterLayout , java.io.Serializable

    
    public class MockedUI
    extends UI
                        

    A simple no-op UI used by default by com.vaadin.testbench.unit.MockVaadin.setup. The class is open, in order to be extensible in user's library

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      MockedUI()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit setChildComponentModal(Component childComponent, Boolean modal)
      Unit navigate(String locationString, QueryParameters queryParameters)
      • Methods inherited from class com.vaadin.flow.component.UI

        access, accessLater, accessLater, accessSynchronously, add, addAfterNavigationListener, addBeforeEnterListener, addBeforeLeaveListener, addHeartbeatListener, addModal, addShortcutListener, addShortcutListener, addToModalComponent, beforeClientResponse, browserNavigate, close, connectClient, doInit, doInit, getActiveDragSourceComponent, getActiveRouterTargetsChain, getActiveViewLocation, getChildren, getCsrfToken, getCurrentView, getElement, getForwardToClientUrl, getInternals, getLoadingIndicatorConfiguration, getLocale, getNavigationListeners, getPage, getPollInterval, getPushConfiguration, getReconnectDialogConfiguration, getRouter, getSession, getUI, getUIId, hasModalComponent, isClosing, isNavigationSupported, leaveNavigation, leaveNavigation, navigate, navigate, navigate, navigate, navigate, navigate, navigate, navigate, navigateToClient, push, refreshCurrentRoute, setDirection, setLocale, setPollInterval
      • Methods inherited from class com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
      • Methods inherited from class com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from class com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from class com.vaadin.flow.component.Component

        findAncestor, getId, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, isAttached, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, setId, setVisible
      • Methods inherited from class com.vaadin.flow.component.PollNotifier

        addPollListener
      • Methods inherited from class com.vaadin.flow.component.HasEnabled

        isEnabled, setEnabled
      • Methods inherited from class com.vaadin.flow.component.HasComponents

        add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll
      • Methods inherited from class com.vaadin.flow.router.RouterLayout

        removeRouterLayoutContent, showRouterLayoutContent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait