public class PerTestServiceCreator extends Object implements org.apache.tapestry5.ioc.ObjectCreator
TestifyConstants.PERTEST
scope.Constructor and Description |
---|
PerTestServiceCreator(PerTestDataStore perTestDataStore,
org.apache.tapestry5.ioc.ObjectCreator delegate) |
Modifier and Type | Method and Description |
---|---|
Object |
createObject()
For each test, the first call will use the delegate
ObjectCreator
to create an instance, and later calls will reuse the same per-test instance. |
public PerTestServiceCreator(PerTestDataStore perTestDataStore, org.apache.tapestry5.ioc.ObjectCreator delegate)
public Object createObject()
ObjectCreator
to create an instance, and later calls will reuse the same per-test instance. The instance is
stored in the PerTestDataStore
and will be released at the end of the test.createObject
in interface org.apache.tapestry5.ioc.ObjectCreator
Copyright © 2009-2012. All Rights Reserved.