Fixed user usage tracking query

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14891 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2009-06-24 12:51:07 +00:00
parent 36302a2f66
commit f2a0a4f35e
3 changed files with 17 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ public class UserUsageTrackingComponentTest extends TestCase
private static final String TEST_USER_PREFIX = "user-";
private static final int MAX_USERS = 100;
private static final int MAX_USERS = 5;
private static final int BATCH_SIZE = 5;
private static final int PROGRESS_SIZE = 100;
@@ -273,7 +273,9 @@ public class UserUsageTrackingComponentTest extends TestCase
NodeRef personNodeRef = personService.getPerson(userName);
// get user stored usage (not including deltas, if any)
assertEquals(userName, i*factor, ((Long)nodeService.getProperty(personNodeRef, ContentModel.PROP_SIZE_CURRENT)).longValue());
Long sizeProp = (Long)nodeService.getProperty(personNodeRef, ContentModel.PROP_SIZE_CURRENT);
assertNotNull("Property " + ContentModel.PROP_SIZE_CURRENT + "does not exist, yet", sizeProp);
assertEquals(userName, i*factor, sizeProp.longValue());
}
}