RM-4326: adjusted unit test name for transferContainerType

This commit is contained in:
Silviu Dinuta
2016-11-08 17:42:06 +02:00
parent 57203f853a
commit ce367f79a3

View File

@@ -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);