mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
58885: Tweaking the tests and handling null better git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62054 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,7 +28,6 @@ import junit.framework.TestCase;
|
||||
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
||||
import org.alfresco.service.cmr.repository.Period;
|
||||
import org.alfresco.service.cmr.repository.PeriodProvider;
|
||||
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||
import org.alfresco.util.ApplicationContextHelper;
|
||||
import org.alfresco.util.CachingDateFormat;
|
||||
@@ -42,7 +41,7 @@ import org.junit.runners.MethodSorters;
|
||||
* @author andyh
|
||||
*/
|
||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||
@Category(BaseSpringTestsCategory.class)
|
||||
@Category(OwnJVMTestsCategory.class)
|
||||
public class PeriodTest extends TestCase
|
||||
{
|
||||
|
||||
|
@@ -48,7 +48,6 @@ import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.service.cmr.security.PermissionService;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.service.namespace.RegexQNamePattern;
|
||||
import org.alfresco.test_category.BaseSpringTestsCategory;
|
||||
import org.alfresco.test_category.OwnJVMTestsCategory;
|
||||
import org.alfresco.util.test.junitrules.AlfrescoPerson;
|
||||
import org.alfresco.util.test.junitrules.ApplicationContextInit;
|
||||
@@ -69,7 +68,7 @@ import org.junit.rules.RuleChain;
|
||||
*
|
||||
* @author Alex Miller
|
||||
*/
|
||||
@Category(BaseSpringTestsCategory.class)
|
||||
@Category(OwnJVMTestsCategory.class)
|
||||
public class DownloadServiceIntegrationTest
|
||||
{
|
||||
public static final long MAX_TIME = 5000;
|
||||
|
@@ -3240,7 +3240,7 @@ public abstract class BaseNodeServiceTest extends BaseSpringTest
|
||||
Map<QName, Serializable> after)
|
||||
{
|
||||
behaviourExecuted = true;
|
||||
assertFalse(before.get(ContentModel.PROP_TITLE).toString().equals(after.get(ContentModel.PROP_TITLE).toString()));
|
||||
assertFalse(String.valueOf(before.get(ContentModel.PROP_TITLE)).equals(String.valueOf(after.get(ContentModel.PROP_TITLE))));
|
||||
|
||||
System.out.print("Before values: ");
|
||||
for (Map.Entry<QName, Serializable> entry : before.entrySet())
|
||||
|
Reference in New Issue
Block a user