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, seedAssets
app, asset, assetDiscoveryResult, assets, canonicaliseRequirePath
getTemplateName, populate, root
addObserver, addObserver, containsFile, create, createDefaultNode, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, rootStorageDir, setNodeDir, storageDir, storageFile, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
assets, getBundleSet, getLinkedAsset, handleLogicalRequest, handleLogicalRequest, seedAssets
app, asset, assets, canonicaliseRequirePath, scopeAssetContainers
getTemplateName, populate
addObserver, addObserver, containsFile, create, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, storageDir, storageFile
public 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.Node
memoizedScopeFiles
in class org.bladerunnerjs.model.engine.AbstractNode
public DirNode styleResources()
public N parent()
public void addTemplateTransformations(java.util.Map<java.lang.String,java.lang.String> transformations) throws ModelUpdateException
BRJSNode
addTemplateTransformations
in interface BRJSNode
transformations
- 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.AssetContainer
public boolean isNamespaceEnforced()
isNamespaceEnforced
in interface org.bladerunnerjs.model.AssetContainer
public void runTests(TestType... testTypes)
TestableNode
runTests
in interface TestableNode
testTypes
- 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()
TestableNode
testTypes
in interface TestableNode
TypedTestPack
showing the location and name of the tests available.public TypedTestPack testType(java.lang.String typedTestPackName)
TestableNode
TypedTestPack
of specified type (unit, acceptance, integration or performance)
from within the current TestableNode.testType
in interface TestableNode
typedTestPackName
- 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.Node
getTypeName
in class org.bladerunnerjs.model.engine.AbstractNode