org.finra.jtaf.core.model.test
Class TestNamespace
java.lang.Object
org.finra.jtaf.core.model.test.TestComponent
org.finra.jtaf.core.model.test.TestNamespace
- All Implemented Interfaces:
- Iterable<TestComponent>
- Direct Known Subclasses:
- TestSuite
public class TestNamespace
- extends TestComponent
- implements Iterable<TestComponent>
These are the internal nodes of our testing model.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
protected static TestNamespace root
TestNamespace
public TestNamespace(String name)
throws NameFormatException
- Instantiates a new TestGroup without a parent. The
parent is assigned when the TestGroup is added to
- Parameters:
name
-
- Throws:
NameFormatException
isComponentMapContain
public final boolean isComponentMapContain(String name)
- Parameters:
name
-
- Returns:
- True if this namespace contains a component w/ the supplied name
contains
public final boolean contains(TestComponent c)
- Parameters:
c
-
- Returns:
- True if this contains the given component
add
public final void add(TestComponent testComponent)
throws NameCollisionException
- Throws:
NameCollisionException
getTestSuiteMapping
public Map<String,TestSuite> getTestSuiteMapping()
getNeighbor
public final List<TestComponent> getNeighbor(String name)
- Description copied from class:
TestComponent
- Returns a parent or child of the current node depending upon the token provided. Subclasses should invoke super.getNeighbor() before implementing their own logic
- Overrides:
getNeighbor
in class TestComponent
- Returns:
getWithOutTestDataInfo
public final List<TestComponent> getWithOutTestDataInfo(String name)
getComponentList
public final List<TestComponent> getComponentList()
- This returns a copy of the component list in order to
prevent people from muddling w/ the internal state of
the class.
- Returns:
- A copy of the component list
iterator
public final Iterator<TestComponent> iterator()
- FIXME: This should return a read-only iterator
NOT USED
- Specified by:
iterator
in interface Iterable<TestComponent>
acceptTestVisitor
public final void acceptTestVisitor(ITestVisitor v)
throws Exception
- Specified by:
acceptTestVisitor
in class TestComponent
- Throws:
Exception
Copyright © 2014. All rights reserved.