Context no longer automatically populated
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.3.x@
1563564 13f79535-47bb-0310-9956-
ffa450edef68
* under the License.
*/
+import java.util.HashMap;
import java.util.List;
+import com.opensymphony.xwork2.ActionContext;
import org.apache.maven.archiva.model.ArchivaProjectModel;
import org.apache.maven.archiva.security.UserRepositories;
import org.apache.maven.archiva.security.UserRepositoriesStub;
protected static final String TEST_SCM_URL = "scmUrl";
+ @Override
+ protected void setUp()
+ throws Exception
+ {
+ super.setUp();
+
+ ActionContext.setContext( new ActionContext( new HashMap<String, Object>() ) );
+ }
+
protected void setObservableRepos( List<String> repoIds )
{
UserRepositoriesStub repos = (UserRepositoriesStub) lookup( UserRepositories.class );