mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Build fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2037 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -95,7 +95,7 @@ public class ContentMetadataExtracterTest extends BaseSpringTest
|
|||||||
|
|
||||||
// Get the old props
|
// Get the old props
|
||||||
Map<QName, Serializable> props = this.nodeService.getProperties(this.nodeRef);
|
Map<QName, Serializable> props = this.nodeService.getProperties(this.nodeRef);
|
||||||
props.remove(ContentModel.PROP_CREATOR);
|
props.remove(ContentModel.PROP_AUTHOR);
|
||||||
props.put(ContentModel.PROP_TITLE, "");
|
props.put(ContentModel.PROP_TITLE, "");
|
||||||
props.put(ContentModel.PROP_DESCRIPTION, null); // Wonder how this will
|
props.put(ContentModel.PROP_DESCRIPTION, null); // Wonder how this will
|
||||||
// be handled
|
// be handled
|
||||||
@@ -109,7 +109,7 @@ public class ContentMetadataExtracterTest extends BaseSpringTest
|
|||||||
// Check that the properties have been set
|
// Check that the properties have been set
|
||||||
assertEquals(QUICK_TITLE, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_TITLE));
|
assertEquals(QUICK_TITLE, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_TITLE));
|
||||||
assertEquals(QUICK_DESCRIPTION, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_DESCRIPTION));
|
assertEquals(QUICK_DESCRIPTION, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_DESCRIPTION));
|
||||||
assertEquals(QUICK_CREATOR, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_CREATOR));
|
assertEquals(QUICK_CREATOR, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_AUTHOR));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -124,7 +124,7 @@ public class ContentMetadataExtracterTest extends BaseSpringTest
|
|||||||
|
|
||||||
// Get the old props
|
// Get the old props
|
||||||
Map<QName, Serializable> props = this.nodeService.getProperties(this.nodeRef);
|
Map<QName, Serializable> props = this.nodeService.getProperties(this.nodeRef);
|
||||||
props.put(ContentModel.PROP_CREATOR, myCreator);
|
props.put(ContentModel.PROP_AUTHOR, myCreator);
|
||||||
props.put(ContentModel.PROP_TITLE, myTitle);
|
props.put(ContentModel.PROP_TITLE, myTitle);
|
||||||
props.remove(ContentModel.PROP_DESCRIPTION); // Allow this baby
|
props.remove(ContentModel.PROP_DESCRIPTION); // Allow this baby
|
||||||
this.nodeService.setProperties(this.nodeRef, props);
|
this.nodeService.setProperties(this.nodeRef, props);
|
||||||
@@ -136,7 +136,7 @@ public class ContentMetadataExtracterTest extends BaseSpringTest
|
|||||||
|
|
||||||
// Check that the properties have been preserved
|
// Check that the properties have been preserved
|
||||||
assertEquals(myTitle, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_TITLE));
|
assertEquals(myTitle, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_TITLE));
|
||||||
assertEquals(myCreator, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_CREATOR));
|
assertEquals(myCreator, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_AUTHOR));
|
||||||
|
|
||||||
// But this one should have been set
|
// But this one should have been set
|
||||||
assertEquals(QUICK_DESCRIPTION, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_DESCRIPTION));
|
assertEquals(QUICK_DESCRIPTION, this.nodeService.getProperty(this.nodeRef, ContentModel.PROP_DESCRIPTION));
|
||||||
|
@@ -123,6 +123,6 @@ public abstract class AbstractMetadataExtracterTest extends BaseSpringTest
|
|||||||
{
|
{
|
||||||
assertEquals(QUICK_TITLE, destination.get(ContentModel.PROP_TITLE));
|
assertEquals(QUICK_TITLE, destination.get(ContentModel.PROP_TITLE));
|
||||||
assertEquals(QUICK_DESCRIPTION, destination.get(ContentModel.PROP_DESCRIPTION));
|
assertEquals(QUICK_DESCRIPTION, destination.get(ContentModel.PROP_DESCRIPTION));
|
||||||
assertEquals(QUICK_CREATOR, destination.get(ContentModel.PROP_CREATOR));
|
assertEquals(QUICK_CREATOR, destination.get(ContentModel.PROP_AUTHOR));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user