Class TestGroup
- java.lang.Object
-
- org.jenkinsci.plugins.benchmark.results.TestGroup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestGroup.ClassType
-
Field Summary
Fields Modifier and Type Field Description protected TestGroup.ClassType
ctype
protected String
description
protected int
groupHash
protected List<TestGroup>
groups
protected String
name
protected TestGroup
parent
protected List<Threshold>
thresholds
-
Constructor Summary
Constructors Constructor Description TestGroup(TestGroup parent, String name)
TestGroup(TestGroup parent, String name, boolean array)
TestGroup(TestGroup parent, String name, String description)
TestGroup(TestGroup parent, String name, String description, boolean array)
TestGroup(TestGroup parent, String name, String description, TestGroup.ClassType type)
TestGroup(TestGroup parent, String name, TestGroup.ClassType type)
-
Method Summary
-
-
-
Field Detail
-
parent
protected final TestGroup parent
-
name
protected final String name
-
description
protected final String description
-
groupHash
protected final int groupHash
-
ctype
protected TestGroup.ClassType ctype
-
-
Constructor Detail
-
TestGroup
public TestGroup(TestGroup parent, String name, TestGroup.ClassType type)
-
TestGroup
public TestGroup(TestGroup parent, String name, String description, TestGroup.ClassType type)
-
-
Method Detail
-
convertCondensedFileJsonObject
public static void convertCondensedFileJsonObject(com.google.gson.JsonObject object, TestGroup rootGroup, Map<Integer,TestGroup> entityList, ContentDetected detected)
Check for file group in the Jenkins plugin data format, if notne, create one- Parameters:
object
- Original object to parserootGroup
- Point of origin where to attach the data treeentityList
- List of entities grenerateddetected
- Key characteristics fo results
-
isParameterGrp
public boolean isParameterGrp()
-
isThresholdGrp
public boolean isThresholdGrp()
-
getJsonObject
public com.google.gson.JsonObject getJsonObject(int hash)
-
addGroup
public void addGroup(TestGroup testGroup)
-
getGroup
public TestGroup getGroup(int index) throws ArrayIndexOutOfBoundsException
- Throws:
ArrayIndexOutOfBoundsException
-
getNumberOfGroups
public int getNumberOfGroups()
-
addThreshold
public void addThreshold(Threshold threshold)
-
getThreshold
public Threshold getThreshold(int index) throws ArrayIndexOutOfBoundsException
- Throws:
ArrayIndexOutOfBoundsException
-
getNumberOfThresholds
public int getNumberOfThresholds()
-
getParent
public TestGroup getParent()
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getClassType
public TestGroup.ClassType getClassType()
-
getGroupHash
public Integer getGroupHash()
-
getFileHash
public Integer getFileHash()
-
isArray
public boolean isArray()
-
getFullName
public String getFullName()
-
getFileSubGroupFullName
public String getFileSubGroupFullName()
-
getFileGroup
protected TestGroup getFileGroup()
-
-