public class Aspect extends org.bladerunnerjs.model.AbstractBrowsableNode implements TestableNode, org.bladerunnerjs.model.engine.NamedNode
Constructor and Description |
---|
Aspect(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir) |
Aspect(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir,
java.lang.String name) |
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.
|
void |
assertValidName() |
java.lang.String |
getName() |
boolean |
isNamespaceEnforced() |
boolean |
isValidName() |
MemoizedFile[] |
memoizedScopeFiles() |
App |
parent() |
void |
populate(java.lang.String templateGroup)
Any BRJSNode may be populated according to a pre-existing template.
|
org.bladerunnerjs.utility.AspectRequestHandler |
requestHandler() |
java.lang.String |
requirePrefix() |
void |
runTests(TestType... testTypes)
The method runs the tests specified by the test type from within the current TestableNode.
|
java.util.List<org.bladerunnerjs.model.AssetContainer> |
scopeAssetContainers() |
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
addObserver, addObserver, containsFile, create, createDefaultNode, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, getTypeName, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, rootStorageDir, setNodeDir, storageDir, storageFile, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addObserver, addObserver, containsFile, create, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, getTypeName, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, root, storageDir, storageFile
assets, getBundleSet, getLinkedAsset, handleLogicalRequest, handleLogicalRequest, seedAssets
app, asset, assets, canonicaliseRequirePath
getTemplateName
public Aspect(org.bladerunnerjs.model.engine.RootNode rootNode, org.bladerunnerjs.model.engine.Node parent, MemoizedFile dir)
public Aspect(org.bladerunnerjs.model.engine.RootNode rootNode, org.bladerunnerjs.model.engine.Node parent, MemoizedFile dir, java.lang.String name)
public MemoizedFile[] memoizedScopeFiles()
memoizedScopeFiles
in interface org.bladerunnerjs.model.engine.Node
memoizedScopeFiles
in class org.bladerunnerjs.model.engine.AbstractNode
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 getName()
getName
in interface org.bladerunnerjs.model.engine.NamedNode
public boolean isValidName()
isValidName
in interface org.bladerunnerjs.model.engine.NamedNode
public void assertValidName() throws javax.naming.InvalidNameException
assertValidName
in interface org.bladerunnerjs.model.engine.NamedNode
javax.naming.InvalidNameException
public void populate(java.lang.String templateGroup) throws javax.naming.InvalidNameException, ModelUpdateException, TemplateInstallationException
BRJSNode
populate
in interface BRJSNode
populate
in class org.bladerunnerjs.model.AbstractBRJSNode
templateGroup
- a String that represents the name by which the templates therein will be referenced when creating new nodes.
The templateGroup may contain templates for various BRJS entities, and the one corresponding to your current BRJSNode type
will be retrieved automatically.javax.naming.InvalidNameException
- if the node may not be created due to an invalid name associated to itModelUpdateException
- for other non-BRJS-specific issuesTemplateInstallationException
- if the template has not been foundpublic java.lang.String requirePrefix()
requirePrefix
in interface org.bladerunnerjs.model.AssetContainer
public boolean isNamespaceEnforced()
isNamespaceEnforced
in interface org.bladerunnerjs.model.AssetContainer
public java.util.List<org.bladerunnerjs.model.AssetContainer> scopeAssetContainers()
scopeAssetContainers
in interface org.bladerunnerjs.model.AssetContainer
public App parent()
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 org.bladerunnerjs.utility.AspectRequestHandler requestHandler()