Class ScopedStore<T>

  • All Implemented Interfaces:
    net.jqwik.api.lifecycle.Store<T>

    public class ScopedStore<T>
    extends java.lang.Object
    implements net.jqwik.api.lifecycle.Store<T>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.jqwik.api.lifecycle.Store

        net.jqwik.api.lifecycle.Store.StoreFacade
    • Constructor Summary

      Constructors 
      Constructor Description
      ScopedStore​(java.lang.Object identifier, net.jqwik.api.lifecycle.Lifespan lifespan, org.junit.platform.engine.TestDescriptor scope, java.util.function.Supplier<T> initializer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      T get()  
      java.lang.Object getIdentifier()  
      org.junit.platform.engine.TestDescriptor getScope()  
      boolean isVisibleFor​(org.junit.platform.engine.TestDescriptor retriever)  
      net.jqwik.api.lifecycle.Lifespan lifespan()  
      ScopedStore<T> onClose​(java.util.function.Consumer<T> onCloseCallback)  
      void reset()  
      java.lang.String toString()  
      void update​(java.util.function.Function<T,​T> updater)  
      • Methods inherited from class java.lang.Object

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

      • ScopedStore

        public ScopedStore​(java.lang.Object identifier,
                           net.jqwik.api.lifecycle.Lifespan lifespan,
                           org.junit.platform.engine.TestDescriptor scope,
                           java.util.function.Supplier<T> initializer)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface net.jqwik.api.lifecycle.Store<T>
      • lifespan

        public net.jqwik.api.lifecycle.Lifespan lifespan()
        Specified by:
        lifespan in interface net.jqwik.api.lifecycle.Store<T>
      • update

        public void update​(java.util.function.Function<T,​T> updater)
        Specified by:
        update in interface net.jqwik.api.lifecycle.Store<T>
      • reset

        public void reset()
        Specified by:
        reset in interface net.jqwik.api.lifecycle.Store<T>
      • onClose

        public ScopedStore<T> onClose​(java.util.function.Consumer<T> onCloseCallback)
        Specified by:
        onClose in interface net.jqwik.api.lifecycle.Store<T>
      • getIdentifier

        public java.lang.Object getIdentifier()
      • getScope

        public org.junit.platform.engine.TestDescriptor getScope()
      • isVisibleFor

        public boolean isVisibleFor​(org.junit.platform.engine.TestDescriptor retriever)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • close

        public void close()