Class KoraGraphModification

java.lang.Object
ru.tinkoff.kora.test.extension.junit5.KoraGraphModification

public final class KoraGraphModification extends Object
  • Method Details

    • create

      public static KoraGraphModification 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
    • 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
    • replaceComponent

      @Nonnull public <T> KoraGraphModification replaceComponent(@Nonnull Type typeToReplace, @Nonnull Function<KoraAppGraph,? extends T> replacementSupplier)
      Component that should replace existing one with new one
    • 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
    • mockComponent

      @Nonnull public KoraGraphModification mockComponent(@Nonnull Type typeToMock)
      Component that should be Mocked with Mockito
    • mockComponent

      @Nonnull public KoraGraphModification mockComponent(@Nonnull Type typeToMock, @Nonnull List<Class<?>> tags)
      Component that should be Mocked with Mockito
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object