This commit undoes the changes made in ec5d81e78e and ensures that the
getRequestURL() method in MockHttpServletRequest does not include the
String "null" for a null requestURI by first checking if the requestURI
contains text before including it in the composed URL.
Issue: SPR-10643
@ -249,8 +250,8 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -249,8 +250,8 @@ public class MockHttpServletRequest implements HttpServletRequest {
@ -859,7 +860,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -859,7 +860,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
}
publicvoidsetMethod(Stringmethod){
this.method=(method==null?"":method);
this.method=method;
}
@Override
@ -937,7 +938,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -937,7 +938,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
}
publicvoidsetRequestURI(StringrequestURI){
this.requestURI=(requestURI==null?"":requestURI);
this.requestURI=requestURI;
}
@Override
@ -954,7 +955,10 @@ public class MockHttpServletRequest implements HttpServletRequest {
@@ -954,7 +955,10 @@ public class MockHttpServletRequest implements HttpServletRequest {