rave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlu...@apache.org
Subject svn commit: r1245593 - in /incubator/rave/trunk/rave-components/rave-web/src: main/java/org/apache/rave/portal/web/controller/ProfileController.java test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java
Date Fri, 17 Feb 2012 15:03:33 GMT
Author: carlucci
Date: Fri Feb 17 15:03:32 2012
New Revision: 1245593

URL: http://svn.apache.org/viewvc?rev=1245593&view=rev
Log:
RAVE-457: renamed method ProfileController#setUpPersonProfile to viewPersonProfile

Modified:
    incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java
    incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java

Modified: incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java?rev=1245593&r1=1245592&r2=1245593&view=diff
==============================================================================
--- incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java
(original)
+++ incubator/rave/trunk/rave-components/rave-web/src/main/java/org/apache/rave/portal/web/controller/ProfileController.java
Fri Feb 17 15:03:32 2012
@@ -61,8 +61,8 @@ public class ProfileController {
 	 * @return the view name of the user profile page
 	 */
 	@RequestMapping(value = {"/person/{username:.*}"}, method = RequestMethod.GET)
-	public String setUpPersonProfile(@PathVariable String username, ModelMap model, @RequestParam(required=false)
Long referringPageId) {
-		logger.debug("Initializing User Info page");
+	public String viewPersonProfile(@PathVariable String username, ModelMap model, @RequestParam(required
= false) Long referringPageId) {
+		logger.debug("Viewing person profile for: " + username);
 
 		User user = userService.getUserByUsername(username);
 

Modified: incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java?rev=1245593&r1=1245592&r2=1245593&view=diff
==============================================================================
--- incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java
(original)
+++ incubator/rave/trunk/rave-components/rave-web/src/test/java/org/apache/rave/portal/web/controller/ProfileControllerTest.java
Fri Feb 17 15:03:32 2012
@@ -50,7 +50,7 @@ private ProfileController userInfoContro
 	}
 	
 	@Test
-	public void setUpPersonProfile_ShouldAddAttributeForUser() {
+	public void viewPersonProfile_ShouldAddAttributeForUser() {
 		//creating a mock user
 		final User user = new User();
 		final ModelMap model = new ModelMap();
@@ -61,7 +61,7 @@ private ProfileController userInfoContro
 		expect(userService.getUserByUsername(username)).andReturn(user).anyTimes();
 		replay(userService);
 		
-		userInfoController.setUpPersonProfile(username, model, null);
+		userInfoController.viewPersonProfile(username, model, null);
 		
 		//assert that the model is not null
 		assertThat(model, CoreMatchers.notNullValue());



Mime
View raw message