You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-commits@incubator.apache.org by lr...@apache.org on 2011/08/11 20:36:21 UTC
svn commit: r1156813 - in /incubator/photark/branches/photark-rest:
photark-social-ui/src/main/webapp/home/profile.html
photark-social/src/test/java/org/apache/photark/social/person/test/PersonManagerTestCase.java
Author: lresende
Date: Thu Aug 11 20:36:21 2011
New Revision: 1156813
URL: http://svn.apache.org/viewvc?rev=1156813&view=rev
Log:
Fixing compilation issues in social tests
Modified:
incubator/photark/branches/photark-rest/photark-social-ui/src/main/webapp/home/profile.html
incubator/photark/branches/photark-rest/photark-social/src/test/java/org/apache/photark/social/person/test/PersonManagerTestCase.java
Modified: incubator/photark/branches/photark-rest/photark-social-ui/src/main/webapp/home/profile.html
URL: http://svn.apache.org/viewvc/incubator/photark/branches/photark-rest/photark-social-ui/src/main/webapp/home/profile.html?rev=1156813&r1=1156812&r2=1156813&view=diff
==============================================================================
--- incubator/photark/branches/photark-rest/photark-social-ui/src/main/webapp/home/profile.html (original)
+++ incubator/photark/branches/photark-rest/photark-social-ui/src/main/webapp/home/profile.html Thu Aug 11 20:36:21 2011
@@ -27,8 +27,7 @@
function init() {
var getPersonCallback = function(person) {
- document.getElementById('userId').innerHTML = person
- .getDisplayName();
+ document.getElementById('userId').innerHTML = person.getDisplayName();
document.getElementById('displayName').innerHTML = "Test User"; //for tetsing purpose
document.getElementById('u_displayName').value = 'Test User'; //for tetsing purpose
document.getElementById('u_firstName').value = 'XXX'; //for tetsing purpose
Modified: incubator/photark/branches/photark-rest/photark-social/src/test/java/org/apache/photark/social/person/test/PersonManagerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/photark/branches/photark-rest/photark-social/src/test/java/org/apache/photark/social/person/test/PersonManagerTestCase.java?rev=1156813&r1=1156812&r2=1156813&view=diff
==============================================================================
--- incubator/photark/branches/photark-rest/photark-social/src/test/java/org/apache/photark/social/person/test/PersonManagerTestCase.java (original)
+++ incubator/photark/branches/photark-rest/photark-social/src/test/java/org/apache/photark/social/person/test/PersonManagerTestCase.java Thu Aug 11 20:36:21 2011
@@ -59,7 +59,7 @@ public class PersonManagerTestCase {
activities.add("Cricket");
person.setActivities(activities);
pm.savePerson("testuser1", person);
- Person person2 = pm.getPerson("testuser1");
+ Person person2 = pm.getPerson("testuser1", null);
Assert.assertNotNull(person2);
Assert.assertEquals("testuser1", person2.getId());
Assert.assertEquals(person.getDisplayName(), person2.getDisplayName());
@@ -68,7 +68,7 @@ public class PersonManagerTestCase {
Assert.assertNotNull(person2.getActivities());
Assert.assertEquals("Movies", person2.getActivities().get(0));
pm.removePerson("testuser1");
- person2 = pm.getPerson("testuser1");
+ person2 = pm.getPerson("testuser1", null);
Assert.assertNull(person2);
}