Class TestMethodContainer

java.lang.Object
org.testng.internal.TestMethodContainer
All Implemented Interfaces:
IContainer<ITestNGMethod>

public final class TestMethodContainer extends Object implements IContainer<ITestNGMethod>
This implementation leverages a supplier to lazily load the test methods (data) for the very first time and "remembers it" for later invocations. If the user clears the data (the one that we were remembering) then, it resorts to just using the supplier to provide on-demand evaluation of test methods. This implementation is built such that once its been asked to forget the data, it no longer caches it anymore.