Class TestItemTree
- java.lang.Object
-
- com.epam.reportportal.service.tree.TestItemTree
-
public class TestItemTree extends java.lang.ObjectTree for holding test items structure to provideTestItemTree.TestItemLeafretrieving byTestItemTree.ItemTreeKeyfor API calls usingItemTreeReporter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestItemTree.ItemTreeKeyKey for test items structure storing in theTestItemTreestatic classTestItemTree.TestItemLeafClass represents test item with links on parent and descendants.
-
Constructor Summary
Constructors Constructor Description TestItemTree()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestItemTree.TestItemLeafcreateTestItemLeaf(io.reactivex.Maybe<java.lang.String> itemId)Create a Test Item Leaf for a tree of Test Itemsstatic TestItemTree.TestItemLeafcreateTestItemLeaf(io.reactivex.Maybe<java.lang.String> parentId, io.reactivex.Maybe<java.lang.String> itemId)Create a Test Item Leaf for a tree of Test Itemsstatic TestItemTree.TestItemLeafcreateTestItemLeaf(io.reactivex.Maybe<java.lang.String> parentId, io.reactivex.Maybe<java.lang.String> itemId, java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf> childItems)Create a Test Item Leaf for a tree of Test Itemsstatic TestItemTree.TestItemLeafcreateTestItemLeaf(io.reactivex.Maybe<java.lang.String> parentId, io.reactivex.Maybe<java.lang.String> itemId, java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf> childItems, java.util.Map<java.lang.String,java.lang.Object> attributes)Create a Test Item Leaf for a tree of Test Itemsstatic TestItemTree.TestItemLeafcreateTestItemLeaf(io.reactivex.Maybe<java.lang.String> itemId, java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf> childItems)Create a Test Item Leaf for a tree of Test Itemsstatic TestItemTree.TestItemLeafcreateTestItemLeaf(io.reactivex.Maybe<java.lang.String> itemId, java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf> childItems, java.util.Map<java.lang.String,java.lang.Object> attributes)Create a Test Item Leaf for a tree of Test Itemsio.reactivex.Maybe<java.lang.String>getLaunchId()java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf>getTestItems()voidsetLaunchId(io.reactivex.Maybe<java.lang.String> launchId)
-
-
-
Method Detail
-
createTestItemLeaf
public static TestItemTree.TestItemLeaf createTestItemLeaf(io.reactivex.Maybe<java.lang.String> itemId)
Create a Test Item Leaf for a tree of Test Items- Parameters:
itemId- an ID of the leaf- Returns:
- a leaf object
-
createTestItemLeaf
public static TestItemTree.TestItemLeaf createTestItemLeaf(io.reactivex.Maybe<java.lang.String> parentId, io.reactivex.Maybe<java.lang.String> itemId)
Create a Test Item Leaf for a tree of Test Items- Parameters:
parentId- an ID of a parent Test Item (leaf)itemId- an ID of the leaf- Returns:
- a leaf object
-
createTestItemLeaf
public static TestItemTree.TestItemLeaf createTestItemLeaf(io.reactivex.Maybe<java.lang.String> itemId, java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf> childItems)
Create a Test Item Leaf for a tree of Test Items- Parameters:
itemId- an ID of the leafchildItems- child leaf elements- Returns:
- a leaf object
-
createTestItemLeaf
public static TestItemTree.TestItemLeaf createTestItemLeaf(io.reactivex.Maybe<java.lang.String> itemId, java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf> childItems, java.util.Map<java.lang.String,java.lang.Object> attributes)
Create a Test Item Leaf for a tree of Test Items- Parameters:
itemId- an ID of the leafchildItems- child leaf elementsattributes- leaf attributes- Returns:
- a leaf object
-
createTestItemLeaf
public static TestItemTree.TestItemLeaf createTestItemLeaf(io.reactivex.Maybe<java.lang.String> parentId, io.reactivex.Maybe<java.lang.String> itemId, java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf> childItems)
Create a Test Item Leaf for a tree of Test Items- Parameters:
parentId- an ID of a parent Test Item (leaf)itemId- an ID of the leafchildItems- child leaf elements- Returns:
- a leaf object
-
createTestItemLeaf
public static TestItemTree.TestItemLeaf createTestItemLeaf(io.reactivex.Maybe<java.lang.String> parentId, io.reactivex.Maybe<java.lang.String> itemId, java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf> childItems, java.util.Map<java.lang.String,java.lang.Object> attributes)
Create a Test Item Leaf for a tree of Test Items- Parameters:
parentId- an ID of a parent Test Item (leaf)itemId- an ID of the leafchildItems- child leaf elementsattributes- leaf attributes- Returns:
- a leaf object
-
getLaunchId
public io.reactivex.Maybe<java.lang.String> getLaunchId()
-
setLaunchId
public void setLaunchId(io.reactivex.Maybe<java.lang.String> launchId)
-
getTestItems
public java.util.Map<TestItemTree.ItemTreeKey,TestItemTree.TestItemLeaf> getTestItems()
-
-