getServletContextName() should simply return an empty
String. This way tests that need that functionality can
just assume the context name will be / or the default
path. With the current implementation code tested by
MockStrutsTest case needs to catch
UnsupportedOperationException in the real code so it
will run in this test harness. A one line patch is
attached to implement this.
Log in to post a comment.