Class ScopedStore<T>
- java.lang.Object
-
- net.jqwik.engine.execution.lifecycle.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>
-
-
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 voidclose()Tget()java.lang.ObjectgetIdentifier()org.junit.platform.engine.TestDescriptorgetScope()booleanisVisibleFor(org.junit.platform.engine.TestDescriptor retriever)net.jqwik.api.lifecycle.Lifespanlifespan()ScopedStore<T>onClose(java.util.function.Consumer<T> onCloseCallback)voidreset()java.lang.StringtoString()voidupdate(java.util.function.Function<T,T> updater)
-
-
-
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
-
lifespan
public net.jqwik.api.lifecycle.Lifespan lifespan()
- Specified by:
lifespanin interfacenet.jqwik.api.lifecycle.Store<T>
-
update
public void update(java.util.function.Function<T,T> updater)
- Specified by:
updatein interfacenet.jqwik.api.lifecycle.Store<T>
-
reset
public void reset()
- Specified by:
resetin interfacenet.jqwik.api.lifecycle.Store<T>
-
onClose
public ScopedStore<T> onClose(java.util.function.Consumer<T> onCloseCallback)
- Specified by:
onClosein interfacenet.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:
toStringin classjava.lang.Object
-
close
public void close()
-
-