本文整理匯總了Java中org.alfresco.model.ContentModel.PROP_ADDRESSEES屬性的典型用法代碼示例。如果您正苦於以下問題:Java ContentModel.PROP_ADDRESSEES屬性的具體用法?Java ContentModel.PROP_ADDRESSEES怎麽用?Java ContentModel.PROP_ADDRESSEES使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.alfresco.model.ContentModel
的用法示例。
在下文中一共展示了ContentModel.PROP_ADDRESSEES屬性的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: a_value_in_a_multi_valued_property_can_be_asserted
@Test
public void a_value_in_a_multi_valued_property_can_be_asserted() {
final QName property = ContentModel.PROP_ADDRESSEES;
final String expectedValue = "foo";
final List<String> tags = Arrays.asList(expectedValue);
nodeService.setProperty(nodeRef, property, (Serializable) tags);
assertThat(nodeRef).hasMultiplePropertyMember(property, expectedValue);
}
示例2: a_value_missing_a_multi_valued_property_is_an_assertion_error
@Test(expected = AssertionError.class)
public void a_value_missing_a_multi_valued_property_is_an_assertion_error() {
final QName property = ContentModel.PROP_ADDRESSEES;
final String missingValue = "bar";
final List<String> tags = Arrays.asList("foo");
nodeService.setProperty(nodeRef, property, (Serializable) tags);
assertThat(nodeRef).hasMultiplePropertyMember(property, missingValue);
}
示例3: a_value_not_in_a_multi_valued_property_can_be_asserted
@Test
public void a_value_not_in_a_multi_valued_property_can_be_asserted() {
final QName property = ContentModel.PROP_ADDRESSEES;
final String missingValue = "bar";
final List<String> tags = Arrays.asList("foo");
nodeService.setProperty(nodeRef, property, (Serializable) tags);
assertThat(nodeRef).doesNotHaveMultiplePropertyMember(property, missingValue);
}
示例4: a_value_present_when_testing_for_not_in_a_multi_valued_property_is_an_assertion_error
@Test(expected = AssertionError.class)
public void a_value_present_when_testing_for_not_in_a_multi_valued_property_is_an_assertion_error() {
final QName property = ContentModel.PROP_ADDRESSEES;
final String value = "bar";
final List<String> tags = Arrays.asList(value);
nodeService.setProperty(nodeRef, property, (Serializable) tags);
assertThat(nodeRef).doesNotHaveMultiplePropertyMember(property, value);
}