Package com.vaadin.testbench.unit.mocks
Class MockInstantiator
-
- All Implemented Interfaces:
-
com.vaadin.flow.di.Instantiator,java.io.Serializable
public class MockInstantiator implements InstantiatorMakes sure to load MockNpmTemplateParser.
-
-
Field Summary
Fields Modifier and Type Field Description private final Instantiatordelegate
-
Constructor Summary
Constructors Constructor Description MockInstantiator(Instantiator delegate)
-
Method Summary
Modifier and Type Method Description final InstantiatorgetDelegate()<T extends Any> TgetOrCreate(Class<T> type)I18NProvidergetI18NProvider()final static Instantiatorcreate(Instantiator delegate)-
Methods inherited from class com.vaadin.flow.di.Instantiator
createComponent, createRouteTarget, getApplicationClass, getApplicationClass, getDependencyFilters, getIndexHtmlRequestListeners, getMenuAccessControl, getServiceInitListeners -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDelegate
final Instantiator getDelegate()
-
getOrCreate
<T extends Any> T getOrCreate(Class<T> type)
-
getI18NProvider
I18NProvider getI18NProvider()
-
create
final static Instantiator create(Instantiator delegate)
-
-
-
-