com.togethersoft.testing.host
Interface ITestCollection
- public interface ITestCollection
- extends ITestAsset
Represents a storage of test assets - a directory on disk
| Methods inherited from interface com.togethersoft.testing.host.ITestAsset |
addUserObject, copy, cut, delete, getLocation, getParent, isReadOnly, pasteAttachments, removeUserObject, removeUserObjects, setAttribute, setName |
children
public Enumeration children()
- Returns enumeration of children of this collection
collections
public Enumeration collections()
- Returns children collection of this collection
delete
public void delete(ITestAsset asset)
throws TestHostException
- removes an asset identified by
ITestAsset asset from test collection
getChildAt
public ITestAsset getChildAt(int index)
- Returns the child at given index
getCollectionLocation
public URL getCollectionLocation()
- Deprecated.
getNumChildren
public int getNumChildren()
- Returns the number of children of this collection
paste
public ITestAsset paste(ITestAssetRO asset)
throws TestHostException
- Pastes asset into test collection. This method invokes TestAssetFactory#createAsset(asset, this )
to create copy of asset and adds it to this collection. Then ITestAsset#pasteAttachments is invoked to
paste additional files (if any).