RM-4357 - return null when allowableOperations is empty

This commit is contained in:
Ana Bozianu
2016-11-17 14:50:17 +02:00
parent 888684e519
commit a15ff96e25
2 changed files with 5 additions and 20 deletions

View File

@@ -28,8 +28,8 @@
package org.alfresco.rm.rest.api.impl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.Matchers.any;
@@ -208,7 +208,7 @@ public class RMNodesImplUnitTest extends BaseUnitTest
assertEquals(false, resultNode.getIsFile());
assertEquals(false, resultNode.getIsCategory());
List<String> allowableOperations = resultNode.getAllowableOperations();
assertEquals(0, allowableOperations.size());
assertNull(allowableOperations);
}
@Test