Package 

Class MockRouteNotFoundError

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier , com.vaadin.flow.component.DetachNotifier , com.vaadin.flow.component.HasElement , com.vaadin.flow.component.HasStyle , com.vaadin.flow.router.HasErrorParameter , java.io.Serializable

    @Tag(value = "div")@DefaultErrorHandler() 
    public class MockRouteNotFoundError
    extends RouteNotFoundError
                        

    This route gets registered by default in Routes, so that Karibu-Testing can catch any navigation to a missing route and can respond with an informative exception.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private NotFoundException cause
      private final Attributes attributes
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final NotFoundException getCause()
      final Unit setCause(NotFoundException cause)
      Integer setErrorParameter(BeforeEnterEvent event, ErrorParameter<NotFoundException> parameter)
      • Methods inherited from class com.vaadin.flow.router.RouteNotFoundError

        addListener, findAncestor, fireEvent, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setId, setVisible
      • Methods inherited from class com.vaadin.flow.component.Component

        addAttachListener, addClassName, addClassNames, addDetachListener, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MockRouteNotFoundError

        MockRouteNotFoundError()