Class ObjectBag
java.lang.Object
org.testng.internal.ObjectBag
A simple bean bag that is intended to help share objects during the lifetime of TestNG without
needing it to be a singleton.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()static voidcreateIfRequired(Class<?> type, Supplier<Object> supplier) static ObjectBaggetInstance(ISuite suite) static ObjectBaggetInstance(XmlSuite xmlSuite)
-
Constructor Details
-
ObjectBag
public ObjectBag()
-
-
Method Details
-
getInstance
-
getInstance
-
cleanup
-
createIfRequired
-
cleanup
public void cleanup()
-