use of org.apache.sling.commons.testing.integration.NameValuePairList in project sling by apache.
the class ReferenceTypeHintTest method testReferenceTypesCreatedFromUuids.
public void testReferenceTypesCreatedFromUuids() throws Exception {
final NameValuePairList props = new NameValuePairList();
props.add("r", firstUuid);
props.add("r@TypeHint", "Reference");
props.add("w", firstUuid);
props.add("w@TypeHint", "WeakReference");
props.add("rs", firstUuid);
props.add("rs", secondUuid);
props.add("rs@TypeHint", "Reference[]");
props.add("ws", firstUuid);
props.add("ws", secondUuid);
props.add("ws@TypeHint", "WeakReference[]");
final String referencingNodeUrl = testClient.createNode(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, props, null, false);
verifyReferences(referencingNodeUrl);
}
Aggregations