Author: markt
Date: Mon Nov 30 15:52:57 2015
New Revision: 1717282
URL: http://svn.apache.org/viewvc?rev=1717282&view=rev
Log:
Fix test broken by test refactoring in r1717252
Modified:
tomcat/trunk/test/org/apache/catalina/realm/TestRealmBase.java
Modified: tomcat/trunk/test/org/apache/catalina/realm/TestRealmBase.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/realm/TestRealmBase.java?rev=1717282&r1=1717281&r2=1717282&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/realm/TestRealmBase.java (original)
+++ tomcat/trunk/test/org/apache/catalina/realm/TestRealmBase.java Mon Nov 30
15:52:57 2015
@@ -668,7 +668,7 @@ public class TestRealmBase {
// Set up the mock request and response
TesterRequest request = new TesterRequest();
Response response = new TesterResponse();
- Context context = new TesterContext();
+ Context context = request.getContext();
context.addSecurityRole(ROLE1);
context.addSecurityRole(ROLE2);
request.getMappingData().context = context;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]