T - The class of the object under test.public interface IProducer<T>
Because some of the objects can be complex this interface can construct a new instance and can cleanUp after all the instances are finished being used. In general tests will call cleanup to tell the producer implementation that any resources used by newInstance calls may now be freed.
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
All allocated instances may now be cleaned up.
|
T |
newInstance()
Return a new instance of T.
|
T newInstance()
void cleanUp()
Copyright © 2013-2016 XENEI.com. All Rights Reserved.