mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4326: adjusted unit test name for transferContainerType
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user