public abstract class Workbench<N extends org.bladerunnerjs.model.engine.Node> extends org.bladerunnerjs.model.AbstractBrowsableNode implements TestableNode
| Constructor and Description |
|---|
Workbench(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTemplateTransformations(java.util.Map<java.lang.String,java.lang.String> transformations)
Template transformation are used to replace aliases for namings that are automatically replaced when creating an node.
|
java.lang.String |
getTypeName() |
boolean |
isNamespaceEnforced() |
MemoizedFile[] |
memoizedScopeFiles() |
N |
parent() |
java.lang.String |
requirePrefix() |
void |
runTests(TestType... testTypes)
The method runs the tests specified by the test type from within the current TestableNode.
|
DirNode |
styleResources() |
TypedTestPack |
testType(java.lang.String typedTestPackName)
The method retrieves the available
TypedTestPack of specified type (unit, acceptance, integration or performance)
from within the current TestableNode. |
java.util.List<TypedTestPack> |
testTypes()
The method retrieves the available test types from within the current TestableNode.
|
assets, getBundleSet, getLinkedAsset, handleLogicalRequest, handleLogicalRequest, seedAssetsapp, asset, assetDiscoveryResult, assets, canonicaliseRequirePathgetTemplateName, populate, rootaddObserver, addObserver, containsFile, create, createDefaultNode, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, rootStorageDir, setNodeDir, storageDir, storageFile, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassets, getBundleSet, getLinkedAsset, handleLogicalRequest, handleLogicalRequest, seedAssetsapp, asset, assets, canonicaliseRequirePath, scopeAssetContainersgetTemplateName, populateaddObserver, addObserver, containsFile, create, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, storageDir, storageFilepublic Workbench(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir)
public MemoizedFile[] memoizedScopeFiles()
memoizedScopeFiles in interface org.bladerunnerjs.model.engine.NodememoizedScopeFiles in class org.bladerunnerjs.model.engine.AbstractNodepublic DirNode styleResources()
public N parent()
public void addTemplateTransformations(java.util.Map<java.lang.String,java.lang.String> transformations)
throws ModelUpdateException
BRJSNodeaddTemplateTransformations in interface BRJSNodetransformations - a Map of Strings to Strings where the key is the token and the value is the String it will be replaced with
* @see Custom TemplatesModelUpdateException - for any exceptions thrown while calculating node template transformationspublic java.lang.String requirePrefix()
requirePrefix in interface org.bladerunnerjs.model.AssetContainerpublic boolean isNamespaceEnforced()
isNamespaceEnforced in interface org.bladerunnerjs.model.AssetContainerpublic void runTests(TestType... testTypes)
TestableNoderunTests in interface TestableNodetestTypes - may be at least one of the following: UT (unit tests), AT (acceptance tests), IT (integration tests) or PT (performance
tests)public java.util.List<TypedTestPack> testTypes()
TestableNodetestTypes in interface TestableNodeTypedTestPack showing the location and name of the tests available.public TypedTestPack testType(java.lang.String typedTestPackName)
TestableNodeTypedTestPack of specified type (unit, acceptance, integration or performance)
from within the current TestableNode.testType in interface TestableNodetypedTestPackName - may be one of the following: UT (unit tests), AT (acceptance tests), IT (integration tests) or PT (performance
tests)TypedTestPack object showing the location and name of the test pack available.public java.lang.String getTypeName()
getTypeName in interface org.bladerunnerjs.model.engine.NodegetTypeName in class org.bladerunnerjs.model.engine.AbstractNode