mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2420 (Add edit classification to ClassifyService Java API)
+review RM git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108910 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -64,6 +64,7 @@ import com.google.common.collect.Sets;
|
||||
* Unit tests for {@link ContentClassificationServiceImpl}.
|
||||
*
|
||||
* @author tpage
|
||||
* @since 3.0
|
||||
*/
|
||||
public class ContentClassificationServiceImplUnitTest implements ClassifiedContentModel
|
||||
{
|
||||
@@ -138,20 +139,6 @@ public class ContentClassificationServiceImplUnitTest implements ClassifiedConte
|
||||
Sets.newHashSet("reasonId1", "reasonId2"), notAPieceOfContent);
|
||||
}
|
||||
|
||||
/** Classify a piece of content that has already been classified. */
|
||||
@Test(expected = UnsupportedOperationException.class)
|
||||
public void classifyContent_alreadyClassified()
|
||||
{
|
||||
// Create a classified piece of content.
|
||||
NodeRef classifiedContent = new NodeRef("classified://content/");
|
||||
when(mockDictionaryService.isSubClass(mockNodeService.getType(classifiedContent), ContentModel.TYPE_CONTENT)).thenReturn(true);
|
||||
when(mockNodeService.hasAspect(classifiedContent, ClassifiedContentModel.ASPECT_CLASSIFIED)).thenReturn(true);
|
||||
|
||||
// Call the method under test.
|
||||
contentClassificationServiceImpl.classifyContent("levelId1", "classifiedBy", "classificationAgency",
|
||||
Sets.newHashSet("reasonId1", "reasonId2"), classifiedContent);
|
||||
}
|
||||
|
||||
/** Classify a piece of content that has already been shared */
|
||||
@Test(expected = IllegalStateException.class)
|
||||
public void classifySharedContent()
|
||||
|
Reference in New Issue
Block a user