com.silverpeas.pdc
Class TestResources

java.lang.Object
  extended by com.silverpeas.pdc.TestResources

@Named
public final class TestResources
extends Object

It wraps the resources and the parameters to use in the unit tests


Field Summary
static String COMPONENT_INSTANCE_1_ID
           
static String COMPONENT_INSTANCE_1_NODE_1_ID
           
static String COMPONENT_INSTANCE_1_NODE_2_ID
           
static String COMPONENT_INSTANCE_2_ID
           
static String COMPONENT_INSTANCE_2_NODE_1_ID
           
static String COMPONENT_INSTANCE_2_NODE_2_ID
           
static String COMPONENT_INSTANCE_3_ID
           
static String COMPONENT_INSTANCE_3_NODE_1_ID
           
static String COMPONENT_INSTANCE_3_NODE_2_ID
           
static String CONTENT_ID
           
static String UNEXISTING_NODE_ID
           
 
Constructor Summary
TestResources()
           
 
Method Summary
 TreeNode addTreeNode(String nodeId, String treeId, String parentNodeId, String label)
           
 PdcAxisValue aRandomlyPdcAxisValue()
           
 List<PdcClassification> classificationsHavingAsValue(PdcAxisValue value)
           
 String componentInstanceWithAPredefinedClassification()
           
 String componentInstanceWithOnlyAWholePredefinedClassification()
           
 String componentInstanceWithoutPredefinedClassification()
           
protected  void init()
           
 List<String> nodesIdOfComponentInstance(String componentInstanceId)
           
 PdcClassification predefinedClassificationForComponentInstance(String instanceId)
           
 PdcClassification predefinedClassificationForNode(String nodeId, String instanceId)
           
 List<PdcClassification> predefinedClassificationForNodesInOrder(List<String> nodeIds)
           
 String unexistingNodeId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_INSTANCE_1_ID

public static final String COMPONENT_INSTANCE_1_ID
See Also:
Constant Field Values

COMPONENT_INSTANCE_2_ID

public static final String COMPONENT_INSTANCE_2_ID
See Also:
Constant Field Values

COMPONENT_INSTANCE_3_ID

public static final String COMPONENT_INSTANCE_3_ID
See Also:
Constant Field Values

COMPONENT_INSTANCE_1_NODE_1_ID

public static final String COMPONENT_INSTANCE_1_NODE_1_ID
See Also:
Constant Field Values

COMPONENT_INSTANCE_1_NODE_2_ID

public static final String COMPONENT_INSTANCE_1_NODE_2_ID
See Also:
Constant Field Values

COMPONENT_INSTANCE_2_NODE_1_ID

public static final String COMPONENT_INSTANCE_2_NODE_1_ID
See Also:
Constant Field Values

COMPONENT_INSTANCE_2_NODE_2_ID

public static final String COMPONENT_INSTANCE_2_NODE_2_ID
See Also:
Constant Field Values

COMPONENT_INSTANCE_3_NODE_1_ID

public static final String COMPONENT_INSTANCE_3_NODE_1_ID
See Also:
Constant Field Values

COMPONENT_INSTANCE_3_NODE_2_ID

public static final String COMPONENT_INSTANCE_3_NODE_2_ID
See Also:
Constant Field Values

CONTENT_ID

public static final String CONTENT_ID
See Also:
Constant Field Values

UNEXISTING_NODE_ID

public static final String UNEXISTING_NODE_ID
See Also:
Constant Field Values
Constructor Detail

TestResources

public TestResources()
Method Detail

init

@PostConstruct
protected void init()

addTreeNode

public TreeNode addTreeNode(String nodeId,
                            String treeId,
                            String parentNodeId,
                            String label)

unexistingNodeId

public String unexistingNodeId()

componentInstanceWithAPredefinedClassification

public String componentInstanceWithAPredefinedClassification()

componentInstanceWithOnlyAWholePredefinedClassification

public String componentInstanceWithOnlyAWholePredefinedClassification()

componentInstanceWithoutPredefinedClassification

public String componentInstanceWithoutPredefinedClassification()

nodesIdOfComponentInstance

public List<String> nodesIdOfComponentInstance(String componentInstanceId)

predefinedClassificationForComponentInstance

public PdcClassification predefinedClassificationForComponentInstance(String instanceId)

predefinedClassificationForNode

public PdcClassification predefinedClassificationForNode(String nodeId,
                                                         String instanceId)

predefinedClassificationForNodesInOrder

public List<PdcClassification> predefinedClassificationForNodesInOrder(List<String> nodeIds)

aRandomlyPdcAxisValue

public PdcAxisValue aRandomlyPdcAxisValue()

classificationsHavingAsValue

public List<PdcClassification> classificationsHavingAsValue(PdcAxisValue value)


Copyright © 2016 Silverpeas. All Rights Reserved.