Class ComponentsInfo
java.lang.Object
org.apache.sling.testing.clients.osgi.ComponentsInfo
Thin wrapper around the list of components
-
Constructor Summary
ConstructorsConstructorDescriptionComponentsInfo
(com.fasterxml.jackson.databind.JsonNode rootNode) The only constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
-
Constructor Details
-
ComponentsInfo
public ComponentsInfo(com.fasterxml.jackson.databind.JsonNode rootNode) The only constructor.- Parameters:
rootNode
- the root JSON node of the components info.
-
-
Method Details
-
getNumberOfInstalledComponents
- Returns:
- the number of installed components
- Throws:
TestingValidationException
- if the info cannot be retrieved
-
forId
- Parameters:
id
- the id of the component- Returns:
- the ComponentInfo for a component with the identifier
id
- Throws:
TestingValidationException
- if the info cannot be retrieved
-
forName
- Parameters:
name
- the name of the component- Returns:
- the ComponentInfo for a component with the name
name
- Throws:
TestingValidationException
- if the info cannot be retrieved
-
forPid
- Parameters:
pid
- the pid of the component- Returns:
- the ComponentInfo for a component with the pid
pid
- Throws:
TestingValidationException
- if the info cannot be retrieved
-