diff --git a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/TransferContainerTypeUnitTest.java b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/TransferContainerTypeUnitTest.java index 5e622ecc93..1623164f25 100644 --- a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/TransferContainerTypeUnitTest.java +++ b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/TransferContainerTypeUnitTest.java @@ -51,16 +51,15 @@ public class TransferContainerTypeUnitTest extends BaseUnitTest private @InjectMocks TransferContainerType transferContainerType; /** - * Given that we try to add a non "rma:transfer" type to transfer container, + * Given that we try to add to transfer container, * Then InvalidParameterException is thrown. */ @Test(expected = InvalidParameterException.class) - public void testAddNonTransferTypeToTransferContainerTest() + public void testAddToTransferContainerTest() { NodeRef transferContainer = generateNodeRef(TYPE_TRANSFER_CONTAINER, true); QName type = AlfMock.generateQName(); - when(mockedDictionaryService.isSubClass(type, TYPE_TRANSFER)).thenReturn(false); NodeRef nodeRef = AlfMock.generateNodeRef(mockedNodeService, type); ChildAssociationRef mockedChildAssoc = mock(ChildAssociationRef.class);