Class KoraGraphModification
java.lang.Object
ru.tinkoff.kora.test.extension.junit5.KoraGraphModification
-
Method Summary
Modifier and TypeMethodDescriptionaddComponent(Type typeToAdd, Function<KoraAppGraph, T> instanceSupplier) Component that should be added to Graph ContextaddComponent(Type typeToAdd, Supplier<T> instanceSupplier) Component that should be added to Graph ContextaddComponent(Type typeToAdd, List<Class<?>> tags, Function<KoraAppGraph, T> instanceSupplier) Component that should be added to Graph ContextaddComponent(Type typeToAdd, List<Class<?>> tags, Supplier<T> instanceSupplier) Component that should be added to Graph Contextstatic KoraGraphModificationcreate()booleaninthashCode()mockComponent(Type typeToMock, Supplier<? extends T> replacementSupplier) Component that should replace existing one with Mock AND all real component dependencies removed for graphmockComponent(Type typeToMock, List<Class<?>> tags, Supplier<? extends T> replacementSupplier) Component that should replace existing one with Mock AND all real component dependencies removed for graphreplaceComponent(Type typeToReplace, Function<KoraAppGraph, ? extends T> replacementSupplier) Component that should replace existing one with new one AND keeps its dependencies in graphreplaceComponent(Type typeToReplace, Supplier<? extends T> replacementSupplier) Component that should replace existing one with new one AND keeps its dependencies in graphreplaceComponent(Type typeToReplace, List<Class<?>> tags, Function<KoraAppGraph, ? extends T> replacementSupplier) Component that should replace existing one with new one AND keeps its dependencies in graphreplaceComponent(Type typeToReplace, List<Class<?>> tags, Supplier<? extends T> replacementSupplier) Component that should replace existing one with new one AND keeps its dependencies in graph
-
Method Details
-
create
-
addComponent
@Nonnull public <T> KoraGraphModification addComponent(@Nonnull Type typeToAdd, @Nonnull Supplier<T> instanceSupplier) Component that should be added to Graph Context -
addComponent
@Nonnull public <T> KoraGraphModification addComponent(@Nonnull Type typeToAdd, @Nonnull List<Class<?>> tags, @Nonnull Supplier<T> instanceSupplier) Component that should be added to Graph Context -
addComponent
@Nonnull public <T> KoraGraphModification addComponent(@Nonnull Type typeToAdd, @Nonnull Function<KoraAppGraph, T> instanceSupplier) Component that should be added to Graph Context -
addComponent
@Nonnull public <T> KoraGraphModification addComponent(@Nonnull Type typeToAdd, @Nonnull List<Class<?>> tags, @Nonnull Function<KoraAppGraph, T> instanceSupplier) Component that should be added to Graph Context -
replaceComponent
@Nonnull public <T> KoraGraphModification replaceComponent(@Nonnull Type typeToReplace, @Nonnull Supplier<? extends T> replacementSupplier) Component that should replace existing one with new one AND keeps its dependencies in graph -
replaceComponent
@Nonnull public <T> KoraGraphModification replaceComponent(@Nonnull Type typeToReplace, @Nonnull List<Class<?>> tags, @Nonnull Supplier<? extends T> replacementSupplier) Component that should replace existing one with new one AND keeps its dependencies in graph -
replaceComponent
@Nonnull public <T> KoraGraphModification replaceComponent(@Nonnull Type typeToReplace, @Nonnull Function<KoraAppGraph, ? extends T> replacementSupplier) Component that should replace existing one with new one AND keeps its dependencies in graph -
replaceComponent
@Nonnull public <T> KoraGraphModification replaceComponent(@Nonnull Type typeToReplace, @Nonnull List<Class<?>> tags, @Nonnull Function<KoraAppGraph, ? extends T> replacementSupplier) Component that should replace existing one with new one AND keeps its dependencies in graph -
mockComponent
@Nonnull public <T> KoraGraphModification mockComponent(@Nonnull Type typeToMock, @Nonnull Supplier<? extends T> replacementSupplier) Component that should replace existing one with Mock AND all real component dependencies removed for graph -
mockComponent
@Nonnull public <T> KoraGraphModification mockComponent(@Nonnull Type typeToMock, @Nonnull List<Class<?>> tags, @Nonnull Supplier<? extends T> replacementSupplier) Component that should replace existing one with Mock AND all real component dependencies removed for graph -
equals
-
hashCode
public int hashCode()
-